Public
Documentation Settings

Controle de acesso

Gerenciamento de sessão

POSTLogin

{{host}}/login.fcgi
HEADERS
Content-Type

application/json

Bodyraw
{
    "login": "{{login}}",
    "password": "{{password}}"
}
Example Request
curl
curl --location -g '{{host}}/login.fcgi' \
--header 'Content-Type: application/json' \
--data '{
    "login": "{{login}}",
    "password": "{{password}}"
}'
200 OK
Example Response
json
{
  "session": "K5Jvtkv0tP7xhdl67oKTjTfJ"
}
No response headers
This request doesn't return any response headers

POSTLogout

{{host}}/logout.fcgi?session={{session}}
PARAMS
session

{{session}}

Example Request
curl
curl --location -g --request POST '{{host}}/logout.fcgi?session={{session}}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTChecar validade da sessão

{{host}}/session_is_valid.fcgi?session={{session}}
PARAMS
session

{{session}}

Example Request
curl
curl --location -g --request POST '{{host}}/session_is_valid.fcgi?session={{session}}' \
--data ''
200 OK
Example Response
json
{
  "session_is_valid": true
}
Access-Control-Allow-Origin

*

Access-Control-Allow-Headers

origin, x-csrftoken, content-type, accept

Cache-Control

no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Content-Type

application/json; charset=utf-8

Transfer-Encoding

chunked

Date

Mon, 15 Apr 2019 17:05:47 GMT

Server

lighttpd/1.4.35

POSTAlterar login e senha

{{host}}/change_login.fcgi?session={{session}}
HEADERS
Content-Type

application/json

PARAMS
session

{{session}}

Bodyraw
{
	"login": "{{login}}",
	"password": "{{password}}"
}
Example Request
curl
curl --location -g '{{host}}/change_login.fcgi?session={{session}}' \
--header 'Content-Type: application/json' \
--data '{
	"login": "{{login}}",
	"password": "{{password}}"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers