GET Api/LeaveRequest/{EmployeeId}/LeaveStatus/{LeaveStatusId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
EmployeeId

integer

Required

LeaveStatusId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of LeaveRequestViewModel
NameDescriptionTypeAdditional information
LeaveRequestId

integer

None.

EmployeeId

integer

None.

LeaveTypeId

integer

None.

LeaveDayTypeId

integer

None.

StartDate

date

None.

EndDate

date

None.

Reason

string

None.

LeaveStatusId

integer

None.

EmployeeCode

string

None.

EmployeeName

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "LeaveRequestId": 1,
    "EmployeeId": 2,
    "LeaveTypeId": 3,
    "LeaveDayTypeId": 4,
    "StartDate": "2026-01-27T19:12:11.8761028+05:30",
    "EndDate": "2026-01-27T19:12:11.8761028+05:30",
    "Reason": "sample string 7",
    "LeaveStatusId": 8,
    "EmployeeCode": "sample string 9",
    "EmployeeName": "sample string 10"
  },
  {
    "LeaveRequestId": 1,
    "EmployeeId": 2,
    "LeaveTypeId": 3,
    "LeaveDayTypeId": 4,
    "StartDate": "2026-01-27T19:12:11.8761028+05:30",
    "EndDate": "2026-01-27T19:12:11.8761028+05:30",
    "Reason": "sample string 7",
    "LeaveStatusId": 8,
    "EmployeeCode": "sample string 9",
    "EmployeeName": "sample string 10"
  }
]

application/xml, text/xml

Sample:
<ArrayOfLeaveRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netsoft.Web.Api.ViewModel">
  <LeaveRequestViewModel>
    <EmployeeCode>sample string 9</EmployeeCode>
    <EmployeeId>2</EmployeeId>
    <EmployeeName>sample string 10</EmployeeName>
    <EndDate>2026-01-27T19:12:11.8761028+05:30</EndDate>
    <LeaveDayTypeId>4</LeaveDayTypeId>
    <LeaveRequestId>1</LeaveRequestId>
    <LeaveStatusId>8</LeaveStatusId>
    <LeaveTypeId>3</LeaveTypeId>
    <Reason>sample string 7</Reason>
    <StartDate>2026-01-27T19:12:11.8761028+05:30</StartDate>
  </LeaveRequestViewModel>
  <LeaveRequestViewModel>
    <EmployeeCode>sample string 9</EmployeeCode>
    <EmployeeId>2</EmployeeId>
    <EmployeeName>sample string 10</EmployeeName>
    <EndDate>2026-01-27T19:12:11.8761028+05:30</EndDate>
    <LeaveDayTypeId>4</LeaveDayTypeId>
    <LeaveRequestId>1</LeaveRequestId>
    <LeaveStatusId>8</LeaveStatusId>
    <LeaveTypeId>3</LeaveTypeId>
    <Reason>sample string 7</Reason>
    <StartDate>2026-01-27T19:12:11.8761028+05:30</StartDate>
  </LeaveRequestViewModel>
</ArrayOfLeaveRequestViewModel>