curl --request GET \
--url http://localhost:3000/v1/scheduling/leave{
"leave_requests": [
{
"id": 123,
"employee_name": "<string>",
"employee_id": 123,
"leave_type": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"total_days": 123,
"status": "pending",
"reason": "<string>",
"approved_by": "<string>"
}
],
"deputy_configured": true
}Get leave requests from Deputy, optionally filtered by status.
curl --request GET \
--url http://localhost:3000/v1/scheduling/leave{
"leave_requests": [
{
"id": 123,
"employee_name": "<string>",
"employee_id": 123,
"leave_type": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"total_days": 123,
"status": "pending",
"reason": "<string>",
"approved_by": "<string>"
}
],
"deputy_configured": true
}