GET api/SWPON_Leave/GetLeaveBalance?EMPId={EMPId}&COMPId={COMPId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
EMPId

string

Required

COMPId

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of SWPON_AssignLeave
NameDescriptionTypeAdditional information
LeaveId

integer

None.

Balance

decimal number

None.

CompanyId

integer

None.

EmployeeId

integer

None.

LeaveType

string

None.

AvailBal

decimal number

None.

Year

string

None.

ClosingBal

decimal number

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "LeaveId": 1,
    "Balance": 2.0,
    "CompanyId": 3,
    "EmployeeId": 4,
    "LeaveType": "sample string 5",
    "AvailBal": 6.0,
    "Year": "sample string 7",
    "ClosingBal": 8.0,
    "Id": 9
  },
  {
    "LeaveId": 1,
    "Balance": 2.0,
    "CompanyId": 3,
    "EmployeeId": 4,
    "LeaveType": "sample string 5",
    "AvailBal": 6.0,
    "Year": "sample string 7",
    "ClosingBal": 8.0,
    "Id": 9
  }
]

application/xml, text/xml

Sample:
<ArrayOfSWPON_AssignLeave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CoreLibrary">
  <SWPON_AssignLeave>
    <Id>9</Id>
    <AvailBal>6</AvailBal>
    <Balance>2</Balance>
    <ClosingBal>8</ClosingBal>
    <CompanyId>3</CompanyId>
    <EmployeeId>4</EmployeeId>
    <LeaveId>1</LeaveId>
    <LeaveType>sample string 5</LeaveType>
    <Year>sample string 7</Year>
  </SWPON_AssignLeave>
  <SWPON_AssignLeave>
    <Id>9</Id>
    <AvailBal>6</AvailBal>
    <Balance>2</Balance>
    <ClosingBal>8</ClosingBal>
    <CompanyId>3</CompanyId>
    <EmployeeId>4</EmployeeId>
    <LeaveId>1</LeaveId>
    <LeaveType>sample string 5</LeaveType>
    <Year>sample string 7</Year>
  </SWPON_AssignLeave>
</ArrayOfSWPON_AssignLeave>