summaryrefslogtreecommitdiffstats
path: root/protocol.txt
diff options
context:
space:
mode:
Diffstat (limited to 'protocol.txt')
-rw-r--r--protocol.txt19
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