Page History
Table of Contents | ||
---|---|---|
|
...
Access API provides access to the records of a storage unit. Records can be fetched by key. Records can contain one or more scopes, the access API allows to fetch a single scope for the record(s) requested. If the special $record scope is used or no scope is provided, all scopes are returned.
...
The fetch GET/POST request requires the name of the storage unit and the key to fetch. Optionally the scope can be provided.
Code Block | ||||
---|---|---|---|---|
| ||||
GET access/fetch/<storage-unit-name>/<record-key>/<optional:scope> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
POST access/fetchMultiple/<storage-unit-name>/<optional:scope> { "keys": [ "APP_ZONE:667E2D4E4344AE4813AD719B88D14EC6", "APP_ZONE:E0F57D337D5021236E353C7AB305F147" ] } |
...
Response
Returns a 200 response code and an array of records with the specified scope for each key that matched the fetch query, or an empty array if non matched.
...
If the file doesn't exist, a 400 response code is returned and a FILE_NOT_FOUND message.
Get File Metadata
Returns the metadata associated with the requested file.
...
If the file doesn't exist, a 400 response code is returned and a FILE_NOT_FOUND message.