Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

POST http://user_login_AxxonPSIM:user_password_AxxonPSIM@IP adress:port/firserver/ReadDepartments

Request parameters:

ParameterRequiredParameter description
server_idYesID of the Face recognition server in Face PSIM

Request example:

POST http://1:1@127.0.0.1/firserver/ReadDepartments

Code Block
languagebash
{
 "server_id": "1",
 }

 Request headlines:

HeadlineHeadline description
AllowReturns the HTTP method used in request
Content-LengthShows the size of characters in bytes, received in the request
Content-TypeReturns the type of received request
ServerSpecifies the server from which the request comes
Access-Control-Request-MethodReturns the HTTP method that can be used in the request
Access-Control-Origin

Shows if the server response can be accessed by the code that sends a request from this source

DateShows the time of the request

Response example:

Expand
titleClick here to expand
Code Block
languagebash
{
  "Departments": [
    {
            "Id": "1",
            "Name": "1",
    }
],
"AllowCreateDepartments": true,
 "Status": "OK"
}

 

The response returns a list of all departments. 

Response parameters:

ParameterParameter description
DepartmentsList of departments
IdDepartment ID
NameDepartment name
AllowCreateDepartments

Whether it is allowed to create departments

StatusStatus of the completed request: OK—successfully, in case of error—see List of possible errors of the Face recognition server