How to get lists of employees and departments
To get the list of employees: api_employees
Request:
controller=api_employees&session=
44de3a99578d6aede5f7706049f61e13e35f5f4e8f674761ba0a3f570631de57
session | User’s session. |
Respone:
{
"items":
[{
"employee_id": 1,
"first_name": "John",
"second_name": "Dow",
"email": "dow@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:
controller=api_departments&session=
44de3a99578d6aede5f7706049f61e13e35f5f4e8f674761ba0a3f570631de57
session | User’s session. |
Respone:
{
"items":
[{
"department_id": 21,
"display_name": "Head Office",
"items":
[{
"department_id": 38,
"display_name": "Accounting Department",
"items":
[{
"employee_id": 120,
"first_name": "John",
"second_name": "Dow"
}]
}]
}]
}
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. |