POST api/Hotel/gethotellisting

Documentation for 'gethotellisting'.

Request Information

Parameters

NameDescriptionAdditional information
req
Documentation for 'req'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Header": {
    "Username": "sample string 1",
    "Password": "sample string 2"
  },
  "HotelId": "sample string 1"
}

application/xml, text/xml

Sample:
<HotelReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models.HotelDetails">
  <Header>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Header>
  <HotelId>sample string 1</HotelId>
</HotelReq>

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