| GET | /GetAnnualLeaveRequests |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StaffId | query | int | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /GetAnnualLeaveRequests HTTP/1.1 Host: api.coldstarrefrigeration.co.uk Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
[{"Id":0,"StaffId":0,"Starting":"\/Date(-62135596800000-0000)\/","StartingTime":0,"Ending":"\/Date(-62135596800000-0000)\/","EndingTime":0,"ActionedByUserId":0,"Notes":"String","TotalDays":0,"DateRequested":"\/Date(-62135596800000-0000)\/","IsSynced":false,"RequestId":"00000000000000000000000000000000","StatusId":0,"CancelReason":"String","DeclineReason":"String","Year":0,"Staff":{"Id":0,"FirstName":"String","LastName":"String","EmailAddress":"String","MobileNumber":"String","DateOfBirth":"\/Date(-62135596800000-0000)\/","IsDeleted":false,"AnnualLeaveAllowance":0,"AnnualLeaveBalance":0}}]