Porovnat verze

Klíč

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

...

  • Response code:
    • 200 – OK
    • 400 – Error (bad request)
    • 401 – Unauthorized
    • 500 – Server error
    • 512 - Internal application error
  • Response header: Set-Cookie: session  - Actual session value.
  • Response type: json json 
    Page_break_pdf
Blok kódu
titleJson schema:
{
      "$schema": "http://json-schema.org/draft-07/schema#",
      "title": "prop - response",
      "type": "object",
      "properties": {
        "status": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[a-z_][a-z0-9_]*$"
          }
        },
        "prop": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "pattern": "^[a-z_][a-z0-9_]*$",
            "properties": {
              "type": {
              "type": "string"
              },
              "size": {
              "type": "number"
              },
              "access": {
              "type": "string"
              },
              "enum": {
                "type": "array",
                "minItems": 2,
                "items": {
                  "type": "object",
                  "properties": {
                      "ident": {
                      "type": "string"
                    },
                    "value": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "ident",
                    "value"
                  ]
                }
              }
            },
            "restartRequired": {
              "type": "boolean"
            },
            "required": [
              "type", "access"
            ]
          }
        }
      },
      "required": [
        "prop"
      ],
      "additionalProperties": false
}

...