curl --request GET \
--url http://localhost:3000/v1/scanner/leave{
"leaveRequests": [
{
"id": 123,
"employeeName": "<string>",
"employeeId": 123,
"leaveType": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"totalDays": 123,
"status": "<string>",
"reason": "<string>",
"approvedBy": "<string>"
}
],
"deputy_configured": true,
"error": "<string>",
"message": "<string>"
}Returns leave requests from Deputy, optionally filtered by status.
curl --request GET \
--url http://localhost:3000/v1/scanner/leave{
"leaveRequests": [
{
"id": 123,
"employeeName": "<string>",
"employeeId": 123,
"leaveType": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"totalDays": 123,
"status": "<string>",
"reason": "<string>",
"approvedBy": "<string>"
}
],
"deputy_configured": true,
"error": "<string>",
"message": "<string>"
}