From be338a6fec8ba5bb6f5f866cecdfbd4a5e449e81 Mon Sep 17 00:00:00 2001 From: John Freed Date: Fri, 20 Aug 2021 00:48:02 +0200 Subject: [PATCH] Updated Json service (markdown) --- Json-service.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Json-service.md b/Json-service.md index 8796aa8..e934439 100644 --- a/Json-service.md +++ b/Json-service.md @@ -25,7 +25,7 @@ You should receive the same response that the `nc` command provides. ### Converting options to camelCase -Several options in the command line interface contain embedded hyphens. You may send them as-is, or convert them to camelCase (in which the initial letter is lowercase, the hyphens are removed, and each letter after a former hyphen is capitalized). Internally, they are all converted to camelCase. +Several options in the command line interface contain embedded hyphens. You may send them as-is (all lowercase, with hyphens), or convert them to camelCase (in which each letter after a hyphen is capitalized and then all the hyphens are removed). Internally, they are all converted to camelCase. ### Some example requests @@ -35,7 +35,7 @@ REPLY: `{"jsonrpc":"2.0","result":[...],"id":"5"}` ENTRY: `{"jsonrpc":"2.0","method":"send","params":{"recipient":["+YYY"],"message":"MESSAGE"},"id":4}` REPLY: `{"jsonrpc":"2.0","result":{"timestamp":999},"id":4}` -ENTRY: `{"jsonrpc":"2.0","method":"updateGroup","params":{"groupId":"GROUP_ID=","name":"new group name","members":["+ZZZ"],"link":"enabledWithApproval","setPermissionEditDetails":"onlyAdmins"},"id":"someId"}` +ENTRY: `{"jsonrpc":"2.0","method":"updateGroup","params":{"groupId":"GROUP_ID=","name":"new group name","members":["+ZZZ"],"link":"enabledWithApproval","setPermissionEditDetails":"only-admins"},"id":"someId"}` REPLY: `{"jsonrpc":"2.0","result":{"timestamp":9999},"id":"someId"}` ENTRY: `{"jsonrpc":"2.0","method":"sendSyncRequest","id":9}`