GET api/SWPON_Leave/GetAllLeaveBySuperwisor?empId={empId}&OrgId={OrgId}&fromDate={fromDate}&toDate={toDate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
empId

integer

Required

OrgId

integer

Required

fromDate

date

Required

toDate

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of SWPON_Leave
NameDescriptionTypeAdditional information
LeaveTransactionId

integer

None.

LeaveId

integer

None.

CompanyId

integer

None.

EmployeeId

integer

None.

LeaveCode

string

None.

ApplyDate

string

None.

LeaveFrom

string

None.

LeaveTo

string

None.

SupervisorStatus

string

None.

SupervisorRemark

string

None.

HrStatus

string

None.

HrRemark

string

None.

Reason

string

None.

No_Of_Days

decimal number

None.

EmployeeName

string

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "LeaveTransactionId": 1,
    "LeaveId": 2,
    "CompanyId": 3,
    "EmployeeId": 4,
    "LeaveCode": "sample string 5",
    "ApplyDate": "sample string 6",
    "LeaveFrom": "sample string 7",
    "LeaveTo": "sample string 8",
    "SupervisorStatus": "sample string 9",
    "SupervisorRemark": "sample string 10",
    "HrStatus": "sample string 11",
    "HrRemark": "sample string 12",
    "Reason": "sample string 13",
    "No_Of_Days": 14.0,
    "EmployeeName": "sample string 15",
    "Id": 16
  },
  {
    "LeaveTransactionId": 1,
    "LeaveId": 2,
    "CompanyId": 3,
    "EmployeeId": 4,
    "LeaveCode": "sample string 5",
    "ApplyDate": "sample string 6",
    "LeaveFrom": "sample string 7",
    "LeaveTo": "sample string 8",
    "SupervisorStatus": "sample string 9",
    "SupervisorRemark": "sample string 10",
    "HrStatus": "sample string 11",
    "HrRemark": "sample string 12",
    "Reason": "sample string 13",
    "No_Of_Days": 14.0,
    "EmployeeName": "sample string 15",
    "Id": 16
  }
]

application/xml, text/xml

Sample:
<ArrayOfSWPON_Leave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataLibrary">
  <SWPON_Leave>
    <Id xmlns="http://schemas.datacontract.org/2004/07/CoreLibrary">16</Id>
    <ApplyDate>sample string 6</ApplyDate>
    <CompanyId>3</CompanyId>
    <EmployeeId>4</EmployeeId>
    <EmployeeName>sample string 15</EmployeeName>
    <HrRemark>sample string 12</HrRemark>
    <HrStatus>sample string 11</HrStatus>
    <LeaveCode>sample string 5</LeaveCode>
    <LeaveFrom>sample string 7</LeaveFrom>
    <LeaveId>2</LeaveId>
    <LeaveTo>sample string 8</LeaveTo>
    <LeaveTransactionId>1</LeaveTransactionId>
    <No_Of_Days>14</No_Of_Days>
    <Reason>sample string 13</Reason>
    <SupervisorRemark>sample string 10</SupervisorRemark>
    <SupervisorStatus>sample string 9</SupervisorStatus>
  </SWPON_Leave>
  <SWPON_Leave>
    <Id xmlns="http://schemas.datacontract.org/2004/07/CoreLibrary">16</Id>
    <ApplyDate>sample string 6</ApplyDate>
    <CompanyId>3</CompanyId>
    <EmployeeId>4</EmployeeId>
    <EmployeeName>sample string 15</EmployeeName>
    <HrRemark>sample string 12</HrRemark>
    <HrStatus>sample string 11</HrStatus>
    <LeaveCode>sample string 5</LeaveCode>
    <LeaveFrom>sample string 7</LeaveFrom>
    <LeaveId>2</LeaveId>
    <LeaveTo>sample string 8</LeaveTo>
    <LeaveTransactionId>1</LeaveTransactionId>
    <No_Of_Days>14</No_Of_Days>
    <Reason>sample string 13</Reason>
    <SupervisorRemark>sample string 10</SupervisorRemark>
    <SupervisorStatus>sample string 9</SupervisorStatus>
  </SWPON_Leave>
</ArrayOfSWPON_Leave>