The persistence to the datastore is performed via HTTP methods as following:
|
Method
|
Operation
|
URL format
|
Return
|
Arguments
|
|
GET
|
Fetch all objects for a class
|
/{full-class-name}
|
JSON Array of JSON objects
|
|
|
GET
|
Fetch a single object.
|
/{full-class-name}/{primary key}
|
A JSON object
|
The primary key field is passed in the URL path
|
|
GET
|
Query objects. Returns a JSON Array of objects
|
/{full-class-name}?{filter}
|
JSON Array of JSON objects
|
A JDO/JPA filter query
|
|
HEAD
|
Validates if an object exists.
|
/{full-class-name}/{primary key}
|
|
The primary key field is passed in the URL path
|
|
PUT
|
Update objects
|
/{full-class-name}/{primary key}
|
The JSON object is returned. If using application identity, with the primary key is included.
|
The primary key field is passed in the URL path; The JSON Object is passed in the HTTP Content
|
|
POST
|
Insert objects
|
/{full-class-name}
|
The JSON object is returned. If using application identity, with the primary key is included.
|
The JSON Object is passed in the HTTP Content
|
|
DELETE
|
delete object
|
/{full-class-name}/{primary key}
|
|
The primary key field is passed in the URL path
|