General request format:
POST http://AxxonPSIM_user_login:AxxonPSIM_AxxonPSIM:user_password_AxxonPSIM@IP adresspassword@IP address:port/firserver/ReadDepartments
Request parameters:
| Parameter | Required | Parameter description |
|---|
| server_id | Yes | ID of the Face recognition server in Face PSIM |
Request example:
POST http://1:1@127.0.0.1/firserver/ReadDepartments
| Code Block |
|---|
|
{
"server_id": "1",
} |
Request headlines:
| 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 |
Response example:
| Expand |
|---|
| title | Click here to expand |
|---|
|
| Code Block |
|---|
| {
"Departments": [
{
"Id": "1",
"Name": "1",
}
],
"AllowCreateDepartments": true,
"Status": "OK"
} |
|
The response returns a list of all departments.
Response parameters:
| 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 |