GET api/Leave/PeriodAndRequest?startDate={startDate}&endDate={endDate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
startDate

date

Required

endDate

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of LeavePeriodAndRequest
NameDescriptionTypeAdditional 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.

LeaveRequests

Collection of LeaveRequest

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "LeaveRequests": [
      {
        "ID": 1,
        "ExtraCodeID": 2,
        "ExtraCodeName": "sample string 3",
        "StartDate": "2024-12-22T08:15:40.4917642+01:00",
        "EndDate": "2024-12-22T08:15:40.4917642+01:00",
        "Comment": "sample string 6",
        "LeavePeriodID": 7
      },
      {
        "ID": 1,
        "ExtraCodeID": 2,
        "ExtraCodeName": "sample string 3",
        "StartDate": "2024-12-22T08:15:40.4917642+01:00",
        "EndDate": "2024-12-22T08:15:40.4917642+01:00",
        "Comment": "sample string 6",
        "LeavePeriodID": 7
      }
    ],
    "ID": 1,
    "Name": "sample string 2",
    "Message": "sample string 3",
    "StartDate": "2024-12-22T08:15:40.4917642+01:00",
    "EndDate": "2024-12-22T08:15:40.4917642+01:00",
    "StartPlanningDate": "2024-12-22T08:15:40.4917642+01:00",
    "EndPlanningDate": "2024-12-22T08:15:40.4917642+01:00",
    "ExtraCodes": [
      {
        "ID": 1,
        "Name": "sample string 2"
      },
      {
        "ID": 1,
        "Name": "sample string 2"
      }
    ],
    "FinalExtraCodeID": 4
  },
  {
    "LeaveRequests": [
      {
        "ID": 1,
        "ExtraCodeID": 2,
        "ExtraCodeName": "sample string 3",
        "StartDate": "2024-12-22T08:15:40.4917642+01:00",
        "EndDate": "2024-12-22T08:15:40.4917642+01:00",
        "Comment": "sample string 6",
        "LeavePeriodID": 7
      },
      {
        "ID": 1,
        "ExtraCodeID": 2,
        "ExtraCodeName": "sample string 3",
        "StartDate": "2024-12-22T08:15:40.4917642+01:00",
        "EndDate": "2024-12-22T08:15:40.4917642+01:00",
        "Comment": "sample string 6",
        "LeavePeriodID": 7
      }
    ],
    "ID": 1,
    "Name": "sample string 2",
    "Message": "sample string 3",
    "StartDate": "2024-12-22T08:15:40.4917642+01:00",
    "EndDate": "2024-12-22T08:15:40.4917642+01:00",
    "StartPlanningDate": "2024-12-22T08:15:40.4917642+01:00",
    "EndPlanningDate": "2024-12-22T08:15:40.4917642+01:00",
    "ExtraCodes": [
      {
        "ID": 1,
        "Name": "sample string 2"
      },
      {
        "ID": 1,
        "Name": "sample string 2"
      }
    ],
    "FinalExtraCodeID": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfLeavePeriodAndRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.Cas.WebShared.Models">
  <LeavePeriodAndRequest>
    <EndDate>2024-12-22T08:15:40.4917642+01:00</EndDate>
    <EndPlanningDate>2024-12-22T08:15:40.4917642+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-22T08:15:40.4917642+01:00</StartDate>
    <StartPlanningDate>2024-12-22T08:15:40.4917642+01:00</StartPlanningDate>
    <LeaveRequests xmlns:d3p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models">
      <d3p1:LeaveRequest>
        <d3p1:Comment>sample string 6</d3p1:Comment>
        <d3p1:EndDate>2024-12-22T08:15:40.4917642+01:00</d3p1:EndDate>
        <d3p1:ExtraCodeID>2</d3p1:ExtraCodeID>
        <d3p1:ExtraCodeName>sample string 3</d3p1:ExtraCodeName>
        <d3p1:ID>1</d3p1:ID>
        <d3p1:LeavePeriodID>7</d3p1:LeavePeriodID>
        <d3p1:StartDate>2024-12-22T08:15:40.4917642+01:00</d3p1:StartDate>
      </d3p1:LeaveRequest>
      <d3p1:LeaveRequest>
        <d3p1:Comment>sample string 6</d3p1:Comment>
        <d3p1:EndDate>2024-12-22T08:15:40.4917642+01:00</d3p1:EndDate>
        <d3p1:ExtraCodeID>2</d3p1:ExtraCodeID>
        <d3p1:ExtraCodeName>sample string 3</d3p1:ExtraCodeName>
        <d3p1:ID>1</d3p1:ID>
        <d3p1:LeavePeriodID>7</d3p1:LeavePeriodID>
        <d3p1:StartDate>2024-12-22T08:15:40.4917642+01:00</d3p1:StartDate>
      </d3p1:LeaveRequest>
    </LeaveRequests>
  </LeavePeriodAndRequest>
  <LeavePeriodAndRequest>
    <EndDate>2024-12-22T08:15:40.4917642+01:00</EndDate>
    <EndPlanningDate>2024-12-22T08:15:40.4917642+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-22T08:15:40.4917642+01:00</StartDate>
    <StartPlanningDate>2024-12-22T08:15:40.4917642+01:00</StartPlanningDate>
    <LeaveRequests xmlns:d3p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models">
      <d3p1:LeaveRequest>
        <d3p1:Comment>sample string 6</d3p1:Comment>
        <d3p1:EndDate>2024-12-22T08:15:40.4917642+01:00</d3p1:EndDate>
        <d3p1:ExtraCodeID>2</d3p1:ExtraCodeID>
        <d3p1:ExtraCodeName>sample string 3</d3p1:ExtraCodeName>
        <d3p1:ID>1</d3p1:ID>
        <d3p1:LeavePeriodID>7</d3p1:LeavePeriodID>
        <d3p1:StartDate>2024-12-22T08:15:40.4917642+01:00</d3p1:StartDate>
      </d3p1:LeaveRequest>
      <d3p1:LeaveRequest>
        <d3p1:Comment>sample string 6</d3p1:Comment>
        <d3p1:EndDate>2024-12-22T08:15:40.4917642+01:00</d3p1:EndDate>
        <d3p1:ExtraCodeID>2</d3p1:ExtraCodeID>
        <d3p1:ExtraCodeName>sample string 3</d3p1:ExtraCodeName>
        <d3p1:ID>1</d3p1:ID>
        <d3p1:LeavePeriodID>7</d3p1:LeavePeriodID>
        <d3p1:StartDate>2024-12-22T08:15:40.4917642+01:00</d3p1:StartDate>
      </d3p1:LeaveRequest>
    </LeaveRequests>
  </LeavePeriodAndRequest>
</ArrayOfLeavePeriodAndRequest>