GET api/Leave

returns all leave requests of the user

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of LeaveRequest
NameDescriptionTypeAdditional 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-22T08:03:01.0462274+01:00",
    "EndDate": "2024-12-22T08:03:01.0462274+01:00",
    "Comment": "sample string 6",
    "LeavePeriodID": 7
  },
  {
    "ID": 1,
    "ExtraCodeID": 2,
    "ExtraCodeName": "sample string 3",
    "StartDate": "2024-12-22T08:03:01.0462274+01:00",
    "EndDate": "2024-12-22T08:03:01.0462274+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-22T08:03:01.0462274+01:00</EndDate>
    <ExtraCodeID>2</ExtraCodeID>
    <ExtraCodeName>sample string 3</ExtraCodeName>
    <ID>1</ID>
    <LeavePeriodID>7</LeavePeriodID>
    <StartDate>2024-12-22T08:03:01.0462274+01:00</StartDate>
  </LeaveRequest>
  <LeaveRequest>
    <Comment>sample string 6</Comment>
    <EndDate>2024-12-22T08:03:01.0462274+01:00</EndDate>
    <ExtraCodeID>2</ExtraCodeID>
    <ExtraCodeName>sample string 3</ExtraCodeName>
    <ID>1</ID>
    <LeavePeriodID>7</LeavePeriodID>
    <StartDate>2024-12-22T08:03:01.0462274+01:00</StartDate>
  </LeaveRequest>
</ArrayOfLeaveRequest>