POST api/ApproveAndReject/TravelApproveReject

Request Information

URI Parameters

None.

Body Parameters

TravelRequestApproval
NameDescriptionTypeAdditional information
UserId

integer

None.

Token

string

None.

ListObj

Collection of TravelEntryApprovalEntity

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "Token": "sample string 2",
  "ListObj": [
    {
      "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"
    },
    {
      "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:
{"UserId":1,"Token":"sample string 2","ListObj":[{"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"},{"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.TravelRequestApproval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <ListObj>
    <ApproveAndRejectController.TravelEntryApprovalEntity>
      <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>
    <ApproveAndRejectController.TravelEntryApprovalEntity>
      <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>
  </ListObj>
  <Token>sample string 2</Token>
  <UserId>1</UserId>
</ApproveAndRejectController.TravelRequestApproval>

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

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>