diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-03-20 16:53:56 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-03-25 23:13:11 +0200 |
commit | 395da378214f4537901860b76c15ab1e405d1d3f (patch) | |
tree | 5ae8f5d888f58376db1757242b9f83fba616c876 /protocol.txt | |
parent | 5d663a122ea39802c096a57ad3fb471dee347759 (diff) | |
download | aconf-395da378214f4537901860b76c15ab1e405d1d3f.tar.bz2 aconf-395da378214f4537901860b76c15ab1e405d1d3f.tar.xz |
new data type: set
Diffstat (limited to 'protocol.txt')
-rw-r--r-- | protocol.txt | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/protocol.txt b/protocol.txt index ffc50bf..a0ba4d4 100644 --- a/protocol.txt +++ b/protocol.txt @@ -36,16 +36,16 @@ 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 and collections as JSON objects or arrays with - members as attributes: - - primitive members as JSON primitives - - reference, model, and collection members as path names + - models, collections, and sets as JSON objects or arrays + with members as attributes: + - primitive members as JSON primitives + - reference, model, and collection members as path names meta: JSON object, with the following attributes - name (last component of path name) - ui-name (shown to user) - description (optional help text) - - type (e.g. model, collection, reference, string, number, - boolean) + - type (e.g. model, collection, set, reference, string, + number, boolean) - widget (name of client-side JS module used to display the data) - required (boolean) @@ -70,6 +70,13 @@ req: PUT /config/<obj_path> Delete object: req: DELETE /config/<obj_path> +Add member to a set: +req: POST /config/<set_path> + - body shall contain a JSON primitive + +Delete set member: +req: DELETE /config/<set_path>/<member> + Invoke object-specific action (not yet supported by server): req: POST /config/<obj_path>/<action> - arguments passed as a JSON array in body; serialization as in |