2019-05-11 07:54:10 +08:00
---
swagger : "2.0"
info :
version : "7.0"
title : phpVMS API
description : All of the responses are contained in the "data" variable
basePath : /api/v1
schemes :
- https
paths :
"/flights/search" :
get :
summary : Retrieve all the applications and flags
operationId : getFlightSearch
parameters :
- name : flight_id
in : query
type : string
required : false
description : ID of the flight
- name : airline_id
in : query
type : string
required : false
description : ID of the airline
2020-01-17 06:36:03 +08:00
- name : subfleet_id
in : query
type : string
required : false
description : 'The subfleet to search on. Flights would be returned, but if the subfleets are empty, that means the pilot doesn\'t have permissions for that flight'
2019-05-11 07:54:10 +08:00
- name : flight_number
in : query
type : string
required : false
description : Flight number to use
- name : route_code
in : query
type : string
required : false
description : The route code
- name : dep_icao
in : query
type : string
required : false
description : The departure ICAO
- name : arr_icao
in : query
type : string
required : false
description : The arrival ICAO
- name : dgt
in : query
type : integer
required : false
description : Flights with a distance greater than
2020-01-17 06:36:03 +08:00
- name : dlt
2019-05-11 07:54:10 +08:00
in : query
type : integer
required : false
2020-01-17 06:36:03 +08:00
description : Flights with a distance less than
2019-05-11 07:54:10 +08:00
produces :
- application/json
responses :
200 :
description : Returns flights from a search
schema :
$ref : '#/definitions/AppsWrapper'
tags :
- flights