How to get lists of employees and departments
To get the list of employees: api_employees
Request:
{
"server_token": "...",
"app_version": "...",
"controller": "api_employees"
}
Response:
{
"items":
[{
"employee_id": 1,
"first_name": "Иван",
"second_name": "Петров",
"email": "petrov@mail.loc"
}]
}
items | List of employees; |
employee_id | Employee’s ID; |
first_name | Employee’s name; |
second_name | Employee’s surname; |
Employee’s e-mail; | |
is_deleted | If an employee’s profile was deleted from the AD, but remained in the system. |
To get the tree of departments: api_departments
Request:
{
"server_token": "...",
"app_version": "...",
"controller": "api_departments"
}
Respone:
{
"items":
[{
"department_id": 21,
"display_name": "Головной офис",
"items":
[{
"department_id": 38,
"display_name": "Отдел логистики",
"items":
[{
"employee_id": 120,
"first_name": "Иван",
"second_name": "Петров"
}]
}]
}]
}
items | List of employees; |
department_id | Department’s ID; |
display_name | Department’s name; |
employee_id | Employee’s ID; |
first_name | Employee’s name; |
second_name | Employee’s surname; |
is_deleted | If an employee’s profile was deleted from the AD, but remained in the system. |