GET api/Leave?startDate={startDate}&endDate={endDate}
returns all leave requests of the user between start and enddate
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
startDate | date |
Required |
|
endDate | date |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of LeaveRequestName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
ExtraCodeID | integer |
None. |
|
ExtraCodeName | string |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
|
Comment | string |
None. |
|
LeavePeriodID | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ID": 1, "ExtraCodeID": 2, "ExtraCodeName": "sample string 3", "StartDate": "2024-12-22T07:49:48.7138218+01:00", "EndDate": "2024-12-22T07:49:48.7138218+01:00", "Comment": "sample string 6", "LeavePeriodID": 7 }, { "ID": 1, "ExtraCodeID": 2, "ExtraCodeName": "sample string 3", "StartDate": "2024-12-22T07:49:48.7138218+01:00", "EndDate": "2024-12-22T07:49:48.7138218+01:00", "Comment": "sample string 6", "LeavePeriodID": 7 } ]
application/xml, text/xml
Sample:
<ArrayOfLeaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models"> <LeaveRequest> <Comment>sample string 6</Comment> <EndDate>2024-12-22T07:49:48.7138218+01:00</EndDate> <ExtraCodeID>2</ExtraCodeID> <ExtraCodeName>sample string 3</ExtraCodeName> <ID>1</ID> <LeavePeriodID>7</LeavePeriodID> <StartDate>2024-12-22T07:49:48.7138218+01:00</StartDate> </LeaveRequest> <LeaveRequest> <Comment>sample string 6</Comment> <EndDate>2024-12-22T07:49:48.7138218+01:00</EndDate> <ExtraCodeID>2</ExtraCodeID> <ExtraCodeName>sample string 3</ExtraCodeName> <ID>1</ID> <LeavePeriodID>7</LeavePeriodID> <StartDate>2024-12-22T07:49:48.7138218+01:00</StartDate> </LeaveRequest> </ArrayOfLeaveRequest>