List all Leave Applications

GET/api/leave-applications

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
applicant_id Number optional Optional filter by applicant user ID
status String optional Optional filter by status (pending, approved, rejected, canceled)
curl -X GET "https://yoursite.com/api/leave-applications" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

[
  {
    "id": "1",
    "leave_type_id": "1",
    "applicant_id": "1",
    "start_date": "2024-01-15",
    "end_date": "2024-01-17",
    "reason": "Personal",
    "status": "pending"
  }
]
MethodGET
Path/api/leave-applications
GroupLeave Applications
Sincev1.0.0
Defined inRestApi/Controllers/LeaveApplicationsController.php