POST api/Travel/InsertResidual

Request Information

URI Parameters

None.

Body Parameters

InsertResidualData
NameDescriptionTypeAdditional information
ResidualID

integer

None.

ResidualAmount

decimal number

None.

TravelID

integer

None.

UserId

integer

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ResidualID": 1,
  "ResidualAmount": 2.0,
  "TravelID": 3,
  "UserId": 4,
  "Token": "sample string 5"
}

text/html

Sample:
{"ResidualID":1,"ResidualAmount":2.0,"TravelID":3,"UserId":4,"Token":"sample string 5"}

application/xml, text/xml

Sample:
<TravelController.InsertResidualData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <ResidualAmount>2</ResidualAmount>
  <ResidualID>1</ResidualID>
  <Token>sample string 5</Token>
  <TravelID>3</TravelID>
  <UserId>4</UserId>
</TravelController.InsertResidualData>

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

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>