From: Marcin Siodelski Date: Mon, 15 Jul 2019 16:48:16 +0000 (+0200) Subject: [#643,!421] Updated API doc for option definitions. X-Git-Tag: Kea-1.6.0-beta2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=757a6d21c0a55b014a3a4f4bf6be03c4e4eb6ca2;p=thirdparty%2Fkea.git [#643,!421] Updated API doc for option definitions. --- diff --git a/doc/api/remote-global-parameter4-get-all.json b/doc/api/remote-global-parameter4-get-all.json index 0c00bdedf4..cb9ae43c6c 100644 --- a/doc/api/remote-global-parameter4-get-all.json +++ b/doc/api/remote-global-parameter4-get-all.json @@ -13,7 +13,7 @@ \"server-tags\": [ ] } }", - "cmd-comment": "The server-tags list is mandatory and it muct contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error. The special server tag \"all\" is allowed to fetch the global parameters shared by all servers.", + "cmd-comment": "The server-tags list is mandatory and it must contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error. The special server tag \"all\" is allowed to fetch the global parameters shared by all servers.", "resp-syntax": "{ \"result\": 0, \"text\": \"DHCPv4 global parameters found.\", diff --git a/doc/api/remote-global-parameter6-get-all.json b/doc/api/remote-global-parameter6-get-all.json index cd27d54e1c..cacea92329 100644 --- a/doc/api/remote-global-parameter6-get-all.json +++ b/doc/api/remote-global-parameter6-get-all.json @@ -13,7 +13,7 @@ \"server-tags\": [ ] } }", - "cmd-comment": "The server-tags list is mandatory and it muct contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error. The special server tag \"all\" is allowed to fetch the global parameters shared by all servers.", + "cmd-comment": "The server-tags list is mandatory and it must contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error. The special server tag \"all\" is allowed to fetch the global parameters shared by all servers.", "resp-syntax": "{ \"result\": 0, \"text\": \"DHCPv6 global parameters found.\", diff --git a/doc/api/remote-option-def4-del.json b/doc/api/remote-option-def4-del.json index 0eeee2cf5d..39051a973d 100644 --- a/doc/api/remote-option-def4-del.json +++ b/doc/api/remote-option-def4-del.json @@ -13,10 +13,11 @@ } ], \"remote\": { - } + }, + \"server-tags\": [ ] } }", - "cmd-comment": "This command includes a list with exactly one option definition specification comprising an option name and code.", + "cmd-comment": "This command includes a list with exactly one option definition specification comprising an option name and code. Specifying an empty list, a value of null or multiple server tags will result in an error.", "resp-syntax": "{ \"result\": 0, \"text\": \"1 DHCPv4 option definition(s) deleted.\", diff --git a/doc/api/remote-option-def4-get-all.json b/doc/api/remote-option-def4-get-all.json index f921204d45..646e5e1237 100644 --- a/doc/api/remote-option-def4-get-all.json +++ b/doc/api/remote-option-def4-get-all.json @@ -9,10 +9,11 @@ \"arguments\": { \"remote\": { - } + }, + \"server-tags\": [ ] } }", - "cmd-comment": "This command contains no arguments besides the optional remote.", + "cmd-comment": "The server-tags list is mandatory and it must contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error. The special server tag \"all\" is allowed to fetch the option definitions shared by all servers.", "resp-syntax": "{ \"result\": 0, \"text\": \"2 DHCPv4 option definition(s) found.\", @@ -21,18 +22,18 @@ { , \"metadata\": { - \"server-tag\": + \"server-tags\": [ ] } }, { , \"metadata\": { - \"server-tag\": + \"server-tags\": [ ] } } ], \"count\": 2 } }", - "resp-comment": "The returned response contains a list of maps. Each map contains an option definition specification and the metadata including database specific information associated with the returned objects." + "resp-comment": "The returned response contains a list of maps. Each map contains an option definition specification and the metadata including database specific information associated with the returned objects. If the server tag \"all\" is included in the command, the response contains the option definitions shared between all servers. It excludes server specific option definitions. If an explicit server tag is included in the command, the response contains all option definitions directly associated with the given server and the option definitions associated with all servers when server specific option definitions are not present." } diff --git a/doc/api/remote-option-def4-get.json b/doc/api/remote-option-def4-get.json index 0e625a1d84..abd6968f46 100644 --- a/doc/api/remote-option-def4-get.json +++ b/doc/api/remote-option-def4-get.json @@ -15,10 +15,11 @@ ], \"remote\": { - } + }, + \"server-tags\": [ ] } }", - "cmd-comment": "The desired option definition is identified by the pair of the option code/space values.", + "cmd-comment": "The desired option definition is identified by the pair of the option code/space values. The server-tags list is mandatory and it must contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error. The server tag \"all\" is allowed to fetch the option definition instance shared by all servers.", "resp-syntax": "{ \"result\": 0, \"text\": \"DHCPv4 option definition found.\", @@ -27,12 +28,12 @@ {