-
Notifications
You must be signed in to change notification settings - Fork 14
compensation report
Rohin Awale edited this page Jul 16, 2019
·
1 revision
METHOD | ROUTES | DESCRIPTION | ALLOWED USERS |
---|---|---|---|
GET | /v1/api/compensation/report | allows admin/HOD to generate compensation report | Admin/HOD only |
{
"status": true,
"payload": {
"compensation": {
"leaves": [
{
"name": "John Wick",
"days": 1,
"id": 3,
"leave_pending": false,
"leave_approved": false
},
{
"name": "Jane Doe",
"days": 2,
"id": 2,
"leave_pending": false,
"leave_approved": true
}
]
}
}
}
METHOD | ROUTES | DESCRIPTION | ALLOWED USERS |
---|---|---|---|
GET | /v1/api/compensation/report/<int:id>
|
allows admin/hod to view detail compensation report | Admin/HOD only |
- id here is id that is in the response of /v1/api/compensation/report
{
"status": true,
"payload": {
"user_detail": {
"full_name": "John Wick",
"phone_number": "",
"department": "Administration",
"phone": "",
"image": "http://localhost:8000/static/lms_user/images/photograph.png",
"no_of_days": 1,
"reason": "Worked on saturday holidays",
"leave_pending": false,
"leave_approved": false
}
}
}