Creates a new resource in the container.
Container in which to create a resource.
Representation of the new resource
Optional
conditions: ConditionsOptional conditions under which to proceed.
A ChangeMap.
Deletes a resource.
Identifier of resource to delete.
Optional
conditions: ConditionsOptional conditions under which to proceed.
A ChangeMap.
Retrieves a representation of a resource.
Identifier of the resource to read.
Preferences indicating desired representations.
Optional
conditions: ConditionsOptional conditions under which to proceed.
A representation corresponding to the identifier.
Check if a resource exists in this ResourceSet.
Identifier of resource to check.
A promise resolving if the resource already exists.
Sets or updates the representation of a resource, creating a new resource and intermediary containers as needed.
Identifier of resource to update.
Description of which parts to update.
Optional
conditions: ConditionsOptional conditions under which to proceed.
A ChangeMap.
Sets or replaces the representation of a resource, creating a new resource and intermediary containers as needed.
Identifier of resource to update.
New representation of the resource.
Optional
conditions: ConditionsOptional conditions under which to proceed.
A ChangeMap.
A ResourceStore represents a collection of resources. It has been designed such that each of its methods can be implemented in an atomic way: for each CRUD operation, only one dedicated method needs to be called. A fifth method enables the optimization of partial updates with PATCH. It is up to the implementer of the interface to (not) make an implementation atomic.
ResourceStores are also responsible for taking auxiliary resources into account should those be relevant to the store.