Skip to content

Latest commit

 

History

History
416 lines (297 loc) · 11 KB

records.rst

File metadata and controls

416 lines (297 loc) · 11 KB

Records

Records belong to a collection. It is the data being stored and synchronised.

A record is a mapping with the following attributes:

  • data: attributes of the record object
    • id: the record object id
    • last_modified: the timestamp of the last modification
  • permissions: the ACLs <ACL> for the collection object

Uploading a record

Example Response

http

HTTP/1.1 201 Created Access-Control-Expose-Headers: Backoff, Retry-After, Alert Content-Length: 199 Content-Type: application/json; charset=UTF-8 Date: Thu, 18 Jun 2015 17:02:23 GMT Server: waitress

{
"data": {

"foo": "bar", "id": "89881454-e4e9-4ef0-99a9-404d95900352", "last_modified": 1434646943915

}, "permissions": { "write": [ "basicauth:206691a25679e4e1135f16aa77ebcf211c767393c4306cfffe6cc228ac0886b6" ] }

}

Replacing a record

Updating a record

Retrieving stored records

Retrieving a specific record

Delete stored records

Deleting a single record