POST api/FlightBooking/GetAvailableFlights

Request Information

URI Parameters

None.

Body Parameters

AvailableFlightSearchDTO
NameDescriptionTypeAdditional information
source

string

None.

destination

string

None.

ddate

string

None.

returndate

string

None.

waytype

string

None.

noofPassenger

string

None.

bookingfor

string

None.

Request Formats

application/json, text/json

Sample:
{
  "source": "sample string 1",
  "destination": "sample string 2",
  "ddate": "sample string 3",
  "returndate": "sample string 4",
  "waytype": "sample string 5",
  "noofPassenger": "sample string 6",
  "bookingfor": "sample string 7"
}

application/xml, text/xml

Sample:
<AvailableFlightSearchDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FlightDisruptionBAL.DTO">
  <bookingfor>sample string 7</bookingfor>
  <ddate>sample string 3</ddate>
  <destination>sample string 2</destination>
  <noofPassenger>sample string 6</noofPassenger>
  <returndate>sample string 4</returndate>
  <source>sample string 1</source>
  <waytype>sample string 5</waytype>
</AvailableFlightSearchDTO>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />