GET api/Leave/Period?startDate={startDate}&endDate={endDate}
Returns all leave periods between start and endDate
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
startDate |
Startdate of period |
date |
Required |
endDate |
Enddate of period |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of LeavePeriodName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
Name | string |
None. |
|
Message | string |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
|
StartPlanningDate | date |
None. |
|
EndPlanningDate | date |
None. |
|
ExtraCodes | Collection of LeaveExtraCode |
None. |
|
FinalExtraCodeID | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ID": 1, "Name": "sample string 2", "Message": "sample string 3", "StartDate": "2024-12-22T07:36:18.5475782+01:00", "EndDate": "2024-12-22T07:36:18.5475782+01:00", "StartPlanningDate": "2024-12-22T07:36:18.5475782+01:00", "EndPlanningDate": "2024-12-22T07:36:18.5475782+01:00", "ExtraCodes": [ { "ID": 1, "Name": "sample string 2" }, { "ID": 1, "Name": "sample string 2" } ], "FinalExtraCodeID": 4 }, { "ID": 1, "Name": "sample string 2", "Message": "sample string 3", "StartDate": "2024-12-22T07:36:18.5475782+01:00", "EndDate": "2024-12-22T07:36:18.5475782+01:00", "StartPlanningDate": "2024-12-22T07:36:18.5475782+01:00", "EndPlanningDate": "2024-12-22T07:36:18.5475782+01:00", "ExtraCodes": [ { "ID": 1, "Name": "sample string 2" }, { "ID": 1, "Name": "sample string 2" } ], "FinalExtraCodeID": 4 } ]
application/xml, text/xml
Sample:
<ArrayOfLeavePeriod xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.Cas.WebShared.Models"> <LeavePeriod> <EndDate>2024-12-22T07:36:18.5475782+01:00</EndDate> <EndPlanningDate>2024-12-22T07:36:18.5475782+01:00</EndPlanningDate> <ExtraCodes> <LeaveExtraCode> <ID>1</ID> <Name>sample string 2</Name> </LeaveExtraCode> <LeaveExtraCode> <ID>1</ID> <Name>sample string 2</Name> </LeaveExtraCode> </ExtraCodes> <FinalExtraCodeID>4</FinalExtraCodeID> <ID>1</ID> <Message>sample string 3</Message> <Name>sample string 2</Name> <StartDate>2024-12-22T07:36:18.5475782+01:00</StartDate> <StartPlanningDate>2024-12-22T07:36:18.5475782+01:00</StartPlanningDate> </LeavePeriod> <LeavePeriod> <EndDate>2024-12-22T07:36:18.5475782+01:00</EndDate> <EndPlanningDate>2024-12-22T07:36:18.5475782+01:00</EndPlanningDate> <ExtraCodes> <LeaveExtraCode> <ID>1</ID> <Name>sample string 2</Name> </LeaveExtraCode> <LeaveExtraCode> <ID>1</ID> <Name>sample string 2</Name> </LeaveExtraCode> </ExtraCodes> <FinalExtraCodeID>4</FinalExtraCodeID> <ID>1</ID> <Message>sample string 3</Message> <Name>sample string 2</Name> <StartDate>2024-12-22T07:36:18.5475782+01:00</StartDate> <StartPlanningDate>2024-12-22T07:36:18.5475782+01:00</StartPlanningDate> </LeavePeriod> </ArrayOfLeavePeriod>