GET api/EmployeeTimeOffs

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of EmployeeTimeOffDTO
NameDescriptionTypeAdditional information
Id

integer

None.

EmpName

string

None.

Reason

string

None.

From

date

None.

To

date

None.

Approved

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "EmpName": "sample string 2",
    "Reason": "sample string 3",
    "From": "2025-09-07T02:49:50.6210602+00:00",
    "To": "2025-09-07T02:49:50.6210602+00:00",
    "Approved": true
  },
  {
    "Id": 1,
    "EmpName": "sample string 2",
    "Reason": "sample string 3",
    "From": "2025-09-07T02:49:50.6210602+00:00",
    "To": "2025-09-07T02:49:50.6210602+00:00",
    "Approved": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfEmployeeTimeOffDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTOs.Models">
  <EmployeeTimeOffDTO>
    <Approved>true</Approved>
    <EmpName>sample string 2</EmpName>
    <From>2025-09-07T02:49:50.6210602+00:00</From>
    <Id>1</Id>
    <Reason>sample string 3</Reason>
    <To>2025-09-07T02:49:50.6210602+00:00</To>
  </EmployeeTimeOffDTO>
  <EmployeeTimeOffDTO>
    <Approved>true</Approved>
    <EmpName>sample string 2</EmpName>
    <From>2025-09-07T02:49:50.6210602+00:00</From>
    <Id>1</Id>
    <Reason>sample string 3</Reason>
    <To>2025-09-07T02:49:50.6210602+00:00</To>
  </EmployeeTimeOffDTO>
</ArrayOfEmployeeTimeOffDTO>