From a8aa513b9d07e8cabdb541c5b01d51caf21673bb Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Tue, 17 Dec 2013 16:56:42 +0200 Subject: web client: disable deletion for non-removable collection members --- protocol.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'protocol.txt') diff --git a/protocol.txt b/protocol.txt index f65a93e..035f4ec 100644 --- a/protocol.txt +++ b/protocol.txt @@ -52,8 +52,8 @@ resp: 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, set, reference, string, - number, boolean) + - type (e.g. model, collection, list, set, reference, + string, number, boolean) - widget (name of client-side JS module used to display the data) - editable (boolean) @@ -72,10 +72,12 @@ resp: JSON object, with the following attributes: based on other fields - fields (model only): array of field metadata JSON objects - - members (collections and sets only): metadata for - members (JSON object) - - ui-member (collections and sets only): singular noun - describing members (shown to user) + - members (collections, lists, and sets only): metadata + for members (JSON object) + - ui-member (collections, lists, and sets only): singular + noun describing members (shown to user) + - removable (collections, lists, and sets only): list of + removable members - scope (references only): subtree where the reference can refer to -- cgit v1.2.3