To get the reading of parameter value.
{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "get - request", "type": "object", "properties": { "param": { "type": "array", "items": { "type": "string", "pattern": "^[a-z_][a-z0-9_]*$" } } }, "required": [ "param" ], "additionalProperties": false } |
Meaning of json items:
$.param:
Array with names of configuration parameters to retrieve their values.
An empty array causes read all parameter values.
Type: array
Optional.
{ "param": [ // request for reading values of specific parameters "sntp_enable", "sntp_server", "sntp_timeout", "sntp_period", "dev_sn", "test_wr_param" ] } //OR { "param": [ ] //request for reading all values of existing parameters } |
"$schema": "http://json-schema.org/draft-07/schema#", "title": "get - response", "type": "object", "properties": { "status": { "type": "object", "additionalProperties": { "type": "string", "minLength": 1, "pattern": "^[a-z_][a-z0-9_]*$" } }, "value": { "type": "object", "additionalProperties": { "type": [ "string", "number", "boolean" ], "minLength": 1, "pattern": "^[a-z_][a-z0-9_]*$" } } }, "required": [ "value" ], "additionalProperties": false } |
Meaning of json items:
"<parameter_name>": <parameter_value>
{ "status": { "sntp_timeout": "undefined", "test_wr_param": "acceses_denied" }, "value": { "sntp_enable":"no", "sntp_server": "ntp.cesnet.cz", "sntp_period": 2, "dev_sn": "00000013" } } |