GET Api/Invoke/GetAvQuerySegment/{DepartureAirport}/{ArrivalAirport}/{FlightNo}

获取指定航班信息(含Stop及Cabin结点)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DepartureAirport

出发机场

string

Required

ArrivalAirport

到达机场

string

Required

FlightNo

航班号

string

Required

Body Parameters

None.

Response Information

Resource Description

获取指定航班信息(含Stop及Cabin结点)

SpeedPower.Utility.Models.Project.SQuery.Service.FareData.ParentQuerySegmentModel
NameDescriptionTypeAdditional information
QueryCabins

舱位列表

Collection of SpeedPower.Utility.Models.Project.SQuery.Service.FareData.GetQueryCabinModel

None.

QueryStops

经停点列表

Collection of SpeedPower.Utility.Models.Project.SQuery.Service.FareData.GetQueryStopModel

None.

Sequence

航班序号

integer

None.

Carrier

承运人

string

Required

String length: inclusive between 0 and 2

DepartureAirport

出发机场

string

Required

String length: inclusive between 0 and 3

ArrivalAirport

到达机场

string

Required

String length: inclusive between 0 and 3

DepartureDate

出发日期时间

date

None.

ArrivalDate

到达日期时间

date

None.

FlightNo

航班号

string

Required

String length: inclusive between 0 and 7

StopTimes

integer

None.

CodeShare

是否为共享航班

boolean

None.

ShareToFlightNo

主飞航班号

string

String length: inclusive between 0 and 7

Meal

餐食

string

String length: inclusive between 0 and 7

PlaneType

机型

string

String length: inclusive between 0 and 7

DepartureTerminal

出发航站楼

string

String length: inclusive between 0 and 4

ArrivalTerminal

到达航站楼

string

String length: inclusive between 0 and 4

Time

添加时间

date

None.

Response Formats

application/json, text/json

Sample:
{
  "QueryCabins": [
    {
      "CabinCode": "sample string 1",
      "CabinStatus": "sample string 2",
      "IsSubCabin": true
    },
    {
      "CabinCode": "sample string 1",
      "CabinStatus": "sample string 2",
      "IsSubCabin": true
    }
  ],
  "QueryStops": [
    {
      "Sequence": 1,
      "DepartureAirport": "sample string 2",
      "ArrivalAirport": "sample string 3",
      "DepartureTime": "sample string 4",
      "ArrivalTime": "sample string 5",
      "Week": "sample string 6",
      "FlightTime": "sample string 7",
      "DepartureTerminal": "sample string 8",
      "ArrivalTerminal": "sample string 9"
    },
    {
      "Sequence": 1,
      "DepartureAirport": "sample string 2",
      "ArrivalAirport": "sample string 3",
      "DepartureTime": "sample string 4",
      "ArrivalTime": "sample string 5",
      "Week": "sample string 6",
      "FlightTime": "sample string 7",
      "DepartureTerminal": "sample string 8",
      "ArrivalTerminal": "sample string 9"
    }
  ],
  "Sequence": 1,
  "Carrier": "sample string 2",
  "DepartureAirport": "sample string 3",
  "ArrivalAirport": "sample string 4",
  "DepartureDate": "2024-12-24T02:16:00.770649+08:00",
  "ArrivalDate": "2024-12-24T02:16:00.770649+08:00",
  "FlightNo": "sample string 7",
  "StopTimes": 8,
  "CodeShare": true,
  "ShareToFlightNo": "sample string 10",
  "Meal": "sample string 11",
  "PlaneType": "sample string 12",
  "DepartureTerminal": "sample string 13",
  "ArrivalTerminal": "sample string 14",
  "Time": "2024-12-24T02:16:00.770649+08:00"
}