POST api/ApproveAndReject/TravelEntryApproveAndReject

Request Information

URI Parameters

None.

Body Parameters

TravelEntryApprovalEntity
NameDescriptionTypeAdditional information
TravelID

integer

None.

ApprovedBy

integer

None.

Level

integer

None.

LevelCount

integer

None.

AppliedUserID

integer

None.

FullName

string

None.

Email

string

None.

Language

string

None.

Token

string

None.

Status

integer

None.

ReasonForReject

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TravelID": 1,
  "ApprovedBy": 2,
  "Level": 3,
  "LevelCount": 4,
  "AppliedUserID": 5,
  "FullName": "sample string 6",
  "Email": "sample string 7",
  "Language": "sample string 8",
  "Token": "sample string 9",
  "Status": 10,
  "ReasonForReject": "sample string 11"
}

text/html

Sample:
{"TravelID":1,"ApprovedBy":2,"Level":3,"LevelCount":4,"AppliedUserID":5,"FullName":"sample string 6","Email":"sample string 7","Language":"sample string 8","Token":"sample string 9","Status":10,"ReasonForReject":"sample string 11"}

application/xml, text/xml

Sample:
<ApproveAndRejectController.TravelEntryApprovalEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <AppliedUserID>5</AppliedUserID>
  <ApprovedBy>2</ApprovedBy>
  <Email>sample string 7</Email>
  <FullName>sample string 6</FullName>
  <Language>sample string 8</Language>
  <Level>3</Level>
  <LevelCount>4</LevelCount>
  <ReasonForReject>sample string 11</ReasonForReject>
  <Status>10</Status>
  <Token>sample string 9</Token>
  <TravelID>1</TravelID>
</ApproveAndRejectController.TravelEntryApprovalEntity>

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

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>