POST api/GetLeaveType

Request Information

URI Parameters

None.

Body Parameters

GetLeaveTypeInput
NameDescriptionTypeAdditional information
InnovId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "InnovId": 1
}

application/xml, text/xml

Sample:
<GetLeaveTypeInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RESTWebAPIForPaperlessOnboarding.Models">
  <InnovId>1</InnovId>
</GetLeaveTypeInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetLeaveTypeInput'.

Response Information

Resource Description

GetLeaveTypeList
NameDescriptionTypeAdditional information
LstAttnRegularizationType

Collection of GetLeaveTypeModel

None.

Status

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "LstAttnRegularizationType": [
    {
      "RegularizationTypeID": 1,
      "RegularizationType": "sample string 2"
    },
    {
      "RegularizationTypeID": 1,
      "RegularizationType": "sample string 2"
    }
  ],
  "Status": "sample string 1",
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<GetLeaveTypeList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RESTWebAPIForPaperlessOnboarding.Models">
  <LstAttnRegularizationType>
    <GetLeaveTypeModel>
      <RegularizationType>sample string 2</RegularizationType>
      <RegularizationTypeID>1</RegularizationTypeID>
    </GetLeaveTypeModel>
    <GetLeaveTypeModel>
      <RegularizationType>sample string 2</RegularizationType>
      <RegularizationTypeID>1</RegularizationTypeID>
    </GetLeaveTypeModel>
  </LstAttnRegularizationType>
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</GetLeaveTypeList>