Examples, see test cases
Header:
app-id
app-secret
Get sub/scopes of scopeId
Add/update a sub-scope
Get apps defined in scope.
Get full app definition, including entity definitions.
Add or update full app definition, including entity definitions.
Create state model. Warning: The model can't be updated via API
Get a state model by id.
Get map of documents.
Get document by id.
Add a single or multiple documents (array).
The document id
is generated as UUIDs if not present.
Result for OK/200:
{
"status": 'OK',
"idArr": [ ... ids ... ],
"docMap": {
"<id1>" : { ... doc1 ... },
"<id2>" : ...
}
}
Update properties of multiple documents (array)
Result for OK/200:
{
"status": 'OK',
"docMap": {
"<id1>" : { ... doc1 ... },
"<id2>" : { ... doc1 ... },
...
}
}
Add document or update document by id.
Result for OK/200:
{ "status": "O", "id": "...id..." }
Warning: If the entity has a state model, you have to take care that all operations are valid!
Add update document properties. id
, scopeId
or _state
are ignored.
Delete document by id.
Result for OK/200:
{ "status": "deleted" }
Create (stateId = "null") or change data state.
For updates the post body must contain the id
.
All state changes check for must and must not provided properties.
Non defined properties are passed w/o chek.
Get all documents in the specific state.
Delete collection