latestOpenAPI 3.0.02026-08-1061522.5 KB
24b687a6e18c
Leave Applications
Returns historical or upcoming leave applications
Get upcoming leave applications, starting from today, or historical applications, ending today or earlier
get/users/leave-applications
Query parameters
filter'upcoming' | 'historical' required
Choose upcoming or historical leave applications
Response
All leave applications are sorted by the time they have been created in descending order
Example response
{
"leaveApplications": [
{
"id": "aidhjTypVxiWxO.E8dXmixitUDIUDj175Av8YZyUjtjxWuWm",
"employeeName": "John Doe",
"leaveReason": "Sick",
"from": "2020-09-01 00:00:00",
"to": "2020-09-01 00:00:00",
"sendDate": "2020-08-20 12:25:00",
"status": "PENDING",
"comment": "Employee's comment",
"allDay": true
}
]
}