POST api/ApproveAndReject/ReplacementLeaveApproveAndReject

Request Information

URI Parameters

None.

Body Parameters

ReplacementleaveApproveEntity
NameDescriptionTypeAdditional information
ReplacementID

integer

None.

ApproverID

integer

None.

AppliedUserId

integer

None.

Level

integer

None.

LevelCount

integer

None.

FromDate

string

None.

Todate

string

None.

FullName

string

None.

Email

string

None.

Status

integer

None.

Language

string

None.

Token

string

None.

RejectReason

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ReplacementID": 1,
  "ApproverID": 2,
  "AppliedUserId": 3,
  "Level": 4,
  "LevelCount": 5,
  "FromDate": "sample string 6",
  "Todate": "sample string 7",
  "FullName": "sample string 8",
  "Email": "sample string 9",
  "Status": 10,
  "Language": "sample string 11",
  "Token": "sample string 12",
  "RejectReason": "sample string 13"
}

text/html

Sample:
{"ReplacementID":1,"ApproverID":2,"AppliedUserId":3,"Level":4,"LevelCount":5,"FromDate":"sample string 6","Todate":"sample string 7","FullName":"sample string 8","Email":"sample string 9","Status":10,"Language":"sample string 11","Token":"sample string 12","RejectReason":"sample string 13"}

application/xml, text/xml

Sample:
<ApproveAndRejectController.ReplacementleaveApproveEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <AppliedUserId>3</AppliedUserId>
  <ApproverID>2</ApproverID>
  <Email>sample string 9</Email>
  <FromDate>sample string 6</FromDate>
  <FullName>sample string 8</FullName>
  <Language>sample string 11</Language>
  <Level>4</Level>
  <LevelCount>5</LevelCount>
  <RejectReason>sample string 13</RejectReason>
  <ReplacementID>1</ReplacementID>
  <Status>10</Status>
  <Todate>sample string 7</Todate>
  <Token>sample string 12</Token>
</ApproveAndRejectController.ReplacementleaveApproveEntity>

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

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>