Porovnat verze

Klíč

  • Tento řádek byl přidán.
  • Tento řádek byl odstraněn.
  • Formátování bylo změněno.

...

Blok kódu
titleOdpověď
 POST {
      "status": { 							// return unread parameters
        "sntp_timeout": "undefined",
        "test_wr_param": "access_denied"
      },
      "value": {							// returns read parameters
        "sntp_enable":"no",
        "sntp_server": "ntp.cesnet.cz",
        "sntp_period": 2,
        "dev_sn": "00000013"
      }
    }

To get the reading of parameter value.

Request

  • Urn:              /api/get
  • Method:      POST
  • Request header:  Cookie: session  - actual session value.
  • Request content: json

Response

  • Response code:
    • 200 – OK
    • 500 – Server error
    • 512 - Internal application error
  • Response header:  -
  • Response type: json
Blok kódu
titleJson schema:
{
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
           "deviceType": {
             "type": "string"
           }
        },
        "required": [
          "deviceType",
        ]
     }


Blok kódu
titleExample
{
	"deviceType": "5.1.0.0"
}