diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-05-31 14:05:17 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-05-31 14:05:17 +0300 |
commit | 7afdb563b208459bb308c7ffc4f671ee23b0ca26 (patch) | |
tree | 05605c8744fff34d1061caab6ce15326032c456f /protocol.txt | |
parent | 159c0cce532bd7517bf4cc8ff46d67f4fd38f2f6 (diff) | |
download | aconf-7afdb563b208459bb308c7ffc4f671ee23b0ca26.tar.bz2 aconf-7afdb563b208459bb308c7ffc4f671ee23b0ca26.tar.xz |
new data type: List
Diffstat (limited to 'protocol.txt')
-rw-r--r-- | protocol.txt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/protocol.txt b/protocol.txt index 9a09511..523b474 100644 --- a/protocol.txt +++ b/protocol.txt @@ -36,10 +36,12 @@ resp: JSON object, with the following attributes: data: JSON serialization of object - primitive types as JSON primitives - references as path names (relative to scope) - - models, collections, and sets as JSON objects or arrays - with members as attributes: + - models as JSON objects with members as attributes: - primitive members as JSON primitives - - reference, model, and collection members as path names + - reference, model, collection, list, and set members as + path names + - collections, lists, and sets as JSON arrays with members + as attributes (as for models) meta: JSON object, with the following attributes - name (last component of path name) - ui-name (shown to user) @@ -69,6 +71,12 @@ req: PUT /config/<obj_path> in GET responses - undefined model attributes are deleted +Add object to a list: +req: POST /config/<list_path> + - body is a JSON object with the following attributes: + data: object to be added, serialized as in GET responses + index: position, defaults to the end of the list + Delete object: req: DELETE /config/<obj_path> |