POST api/Values/CancelLeave

Request Information

URI Parameters

None.

Body Parameters

Cancelleavedata
NameDescriptionTypeAdditional information
LeaveId

integer

None.

UserId

integer

None.

Fromdate

string

None.

Todate

string

None.

Token

string

None.

CancelLeaveReason

string

None.

SourceType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LeaveId": 1,
  "UserId": 2,
  "Fromdate": "sample string 3",
  "Todate": "sample string 4",
  "Token": "sample string 5",
  "CancelLeaveReason": "sample string 6",
  "SourceType": "sample string 7"
}

text/html

Sample:
{"LeaveId":1,"UserId":2,"Fromdate":"sample string 3","Todate":"sample string 4","Token":"sample string 5","CancelLeaveReason":"sample string 6","SourceType":"sample string 7"}

application/xml, text/xml

Sample:
<ValuesController.Cancelleavedata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <CancelLeaveReason>sample string 6</CancelLeaveReason>
  <Fromdate>sample string 3</Fromdate>
  <LeaveId>1</LeaveId>
  <SourceType>sample string 7</SourceType>
  <Todate>sample string 4</Todate>
  <Token>sample string 5</Token>
  <UserId>2</UserId>
</ValuesController.Cancelleavedata>

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 'Cancelleavedata'.

Response Information

Resource Description

Dictionary of Object [key] and Object [value]

Response Formats

application/json, text/json, text/html

Sample:
{"System.Object":{},"System.Object":{}}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
</ArrayOfKeyValueOfanyTypeanyType>