Funkce /api/get vrací property parametru – k čemu to je uživatelům? Odpověď je ve formátu JSON.
Metoda: POST
Požadavek
POST { "param": [ "sntp_enable", "sntp_server", "sntp_timeout", "sntp_period", "dev_sn", "test_wr_param" ] } nebo POST { "param": [] //returns all existing parameters }
Odpověď je ve formátu json.
Odpověď
{ "status": { "sntp_timeout": "undefined", }, "prop":{ "sntp_enable":{ "type": "short", "access": "rw", "enum": [ { "ident": "no", "value": 0 }, { "ident": "yes", "value": 1 } ] "restartRequired": true }, "sntp_server":{ "type": "string", "size": 254, "access": "rw", "restartRequired": true, "regex": "^((?!-)[0-9A-Za-z-]{1,63}(?<!-)\\.)+[A-Za-z]{2,6}$" }, "sntp_period":{ "type": "integer", "access": "rw", "minValue": 1, "maxValue": 24 }, "dev_fw_version":{ "type": "string", "access": "r" }, "test_wr_only_param":{ "type": "integer", "access": "w" }, "do_adm_restart":{ "type": "action", "access": "" }, "firmware":{ "type": "file", "access": "w" }, "configuration":{ "type": "file", "access": "rw" } } }