Prohlížíte starou verzi této stránky. Zobrazit aktuální verzi.

Porovnat s aktuální Zobrazit historii stránky

« Předchozí Verze 4 Aktuální »

To download a file.

To write the parameter value.

Request

  • Urn:              /api/donwload
  • Method:      POST
  • Request header:  Cookie: session  - actual session value.
  • Request content: json
Json schema:
{
      "$schema": "http://json-schema.org/draft-07/schema#",
      "title": "passwd - request",
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
}

Meaning of json items:

  • $.name:
    File type content definition; defined by parameter name.
    Type: string.
    Mandatory.
Example
{
      "name": "fw_file“
}

Response

  • 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: Data type is depending on the content of the downloaded file. (application/octet-stream, application/json,…)
  • Response content: Occurs only for response code = 200.



  • Žádné štítky