Danh sách đội nhóm
URL: {host}/api/departments
Method: GET
Header:
Parameter
Mô tả
Authorization
{Bear + access_token}
Accept
application/json
Response :
Parameter
Mô tả
id
Định danh đội nhóm
name
Tên đội nhóm
parent_id
Đội nhóm cha
biz_employer_count
Số lượng nhân sự trong đội nhóm
{
"status": "success",
"data": {
"items": [
{
"department": {
"id": 1,
"name": "IT",
"parent_id": null,
"biz_employer_count": 0
}
},
{
"department": {
"id": 2,
"name": "BOD",
"parent_id": null,
"biz_employer_count": 1
}
},
{
"department": {
"id": 3,
"name": "IT 1",
"parent_id": 1,
"biz_employer_count": 1
}
}
],
"total": 3,
"current_page": 1,
"last_page": 1
}
}
Last updated