Go to documentation repository
Previous page Next page
POST http://AxxonPSIM_user_login:AxxonPSIM_user_password@IP address:port/firserver/ReadDepartments
| Parameter | Required | Parameter description |
|---|---|---|
| server_id | Yes | ID of the Face recognition server in Face PSIM |
POST http://1:1@127.0.0.1/firserver/ReadDepartments
{
"server_id": "1",
}
| Headline | Headline description |
|---|---|
| Allow | Returns the HTTP method used in request |
| Content-Length | Shows the size of characters in bytes received in the request |
| Content-Type | Returns the type of received request |
| Server | Specifies the server from which the request comes |
| Access-Control-Request-Method | Returns 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 |
| Date | Shows the time of the request |
The response returns a list of all departments.
| Parameter | Parameter description |
|---|---|
| Departments | List of departments |
| Id | Department ID |
| Name | Department name |
| AllowCreateDepartments | Whether it is allowed to create departments |
| Status | Status of the completed request: OK—successfully, in case of error—see List of possible errors of the Face recognition server |