POST api/Travel/SaveTravelUserInfo

Request Information

URI Parameters

None.

Body Parameters

TravelUserBookingInfo
NameDescriptionTypeAdditional information
TravelID

integer

None.

UserId

integer

None.

FirtName

string

None.

LastName

string

None.

IcnoORpassportno

string

None.

DOB

string

None.

Mobile

string

None.

Others

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TravelID": 1,
  "UserId": 2,
  "FirtName": "sample string 3",
  "LastName": "sample string 4",
  "IcnoORpassportno": "sample string 5",
  "DOB": "sample string 6",
  "Mobile": "sample string 7",
  "Others": "sample string 8"
}

text/html

Sample:
{"TravelID":1,"UserId":2,"FirtName":"sample string 3","LastName":"sample string 4","IcnoORpassportno":"sample string 5","DOB":"sample string 6","Mobile":"sample string 7","Others":"sample string 8"}

application/xml, text/xml

Sample:
<TravelController.TravelUserBookingInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <DOB>sample string 6</DOB>
  <FirtName>sample string 3</FirtName>
  <IcnoORpassportno>sample string 5</IcnoORpassportno>
  <LastName>sample string 4</LastName>
  <Mobile>sample string 7</Mobile>
  <Others>sample string 8</Others>
  <TravelID>1</TravelID>
  <UserId>2</UserId>
</TravelController.TravelUserBookingInfo>

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

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>