Function
This provides any configuration information that will be mixed into the store
This is a basic store for RESTful communicating with a server through JSON formatted data.
String
The target base URL to use for all requests to the server. This string will be prepended to the id to generate the URL (relative or absolute) for requests sent to the server
String
Indicates the property to use as the identity property. The values of this property should be unique.
Function
The identity to use to lookup the object
Retrieves an object by its identity. This will trigger a GET request to the server using the url `this.target + id`.
Object The object in the store that matches the given id.
Function
The object to get the identity from
Returns an object's identity
Number
Function
The object to store.
Additional metadata for storing the data. Includes an "id" property if a specific id is to be used.
Stores an object. This will trigger a PUT request to the server if the object has an id, otherwise it will trigger a POST request.
Number
Function
The object to store.
Additional metadata for storing the data. Includes an "id" property if a specific id is to be used.
Adds an object. This will trigger a PUT request to the server if the object has an id, otherwise it will trigger a POST request.
Function
The identity to use to delete the object
Deletes an object by its identity. This will trigger a DELETE request to the server.
Function
The query to use for retrieving objects from the store.
The optional arguments to apply to the resultset.
Queries the store for objects. This will trigger a GET request to the server, with the query added as a query string.
dojo.store.api.Store.QueryResults The results of the query, extended with iterative methods.
Object
Object