POST api/FlightSearch

Flight Search pass "Token" in Header

Request Information

URI Parameters

None.

Body Parameters

FlightSearchRequest
NameDescriptionTypeAdditional information
EndUserIp

EndUserIp

string

None.

TokenId

string

None.

AdultCount

AdultCount

string

None.

ChildCount

ChildCount

string

None.

InfantCount

InfantCount

string

None.

JourneyType

JourneyType 1 or 2 for Return

string

None.

DirectFlight

DirectFlight True or false

string

None.

OneStopFlight

OneStopFlight

boolean

None.

Segments

Segment Travaling details from Origin to Destination Request

Collection of Segment

None.

Request Formats

application/json, text/json

Sample:
{
  "EndUserIp": "sample string 1",
  "TokenId": "sample string 2",
  "AdultCount": "sample string 3",
  "ChildCount": "sample string 4",
  "InfantCount": "sample string 5",
  "JourneyType": "sample string 6",
  "DirectFlight": "sample string 7",
  "OneStopFlight": true,
  "Segments": [
    {
      "Origin": "sample string 1",
      "Destination": "sample string 2",
      "FlightCabinClass": "sample string 3",
      "PreferredDepartureTime": "sample string 4",
      "PreferredArrivalTime": "sample string 5"
    },
    {
      "Origin": "sample string 1",
      "Destination": "sample string 2",
      "FlightCabinClass": "sample string 3",
      "PreferredDepartureTime": "sample string 4",
      "PreferredArrivalTime": "sample string 5"
    }
  ]
}

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

Response Information

Resource Description

ResponceMaster
NameDescriptionTypeAdditional information
Error

Error in True and false

string

None.

Message

Responace Error Message

string

None.

Data

Responce Data in object or List

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": "sample string 1",
  "Message": "sample string 2",
  "Data": {}
}