forked from APIs-guru/openapi-directory
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d56add
commit de30f8b
Showing
2 changed files
with
385 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
info: | ||
x-apisguru-categories: | ||
- transport | ||
contact: | ||
x-twitter: aviationdataSYS | ||
x-logo: | ||
url: 'https://twitter.com/aviationdataSYS/profile_image?size=original' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,378 @@ | ||
swagger: '2.0' | ||
schemes: | ||
- http | ||
- https | ||
host: api.aviationdata.systems | ||
info: | ||
contact: | ||
x-twitter: aviationdataSYS | ||
title: AviationData.Systems Airports API V1 | ||
version: v1 | ||
x-apisguru-categories: | ||
- transport | ||
x-logo: | ||
url: 'https://twitter.com/aviationdataSYS/profile_image?size=original' | ||
x-origin: | ||
- format: swagger | ||
url: 'http://api.aviationdata.systems//swagger/docs/v1' | ||
version: '2.0' | ||
x-providerName: aviationdata.systems | ||
consumes: [] | ||
produces: | ||
- application/json | ||
- text/json | ||
securityDefinitions: | ||
basic: | ||
description: Basic HTTP Authentication | ||
type: basic | ||
paths: | ||
'/v1/airport/iata/{airport_iata}': | ||
get: | ||
description: 'Required parameters: airport_iata' | ||
operationId: AirportIATA_AirportIATASearch | ||
parameters: | ||
- description: 'Required: The airports IATA code' | ||
in: path | ||
name: airport_iata | ||
required: true | ||
type: string | ||
responses: | ||
'200': | ||
description: OK | ||
schema: | ||
$ref: '#/definitions/AirportsAPI.Controllers.AirportIATAController.Response' | ||
summary: Search for airport by IATA code | ||
tags: | ||
- AirportIATA | ||
'/v1/airport/name/{airport_name}': | ||
get: | ||
description: 'Required parameters: airport_name' | ||
operationId: AirportDetails_AirportNameSearch | ||
parameters: | ||
- description: 'Required: The airports name' | ||
in: path | ||
name: airport_name | ||
required: true | ||
type: string | ||
responses: | ||
'200': | ||
description: OK | ||
schema: | ||
$ref: '#/definitions/AirportsAPI.Controllers.AirportDetailsController.Response' | ||
summary: Search for airport by name | ||
tags: | ||
- AirportDetails | ||
'/v1/autocomplete/airport/name/{airport_name}': | ||
get: | ||
description: 'Required parameters: airport_name, airport_service_type. Optional parameter: country code (ISO 3166-1).' | ||
operationId: AutoCompleteAirportName_AirportNameSearch | ||
parameters: | ||
- description: 'Required: The airports name' | ||
in: path | ||
name: airport_name | ||
required: true | ||
type: string | ||
- description: 'Required: Needs to be: All, Scheduled or NonScheduled' | ||
enum: | ||
- All | ||
- Scheduled | ||
- NonScheduled | ||
in: query | ||
name: airport_service_type | ||
required: true | ||
type: string | ||
- description: 'Optional: Country code (ISO 3166-1). This can be found via /countries' | ||
in: query | ||
name: optional_country_code | ||
required: false | ||
type: string | ||
responses: | ||
'200': | ||
description: OK | ||
schema: | ||
$ref: '#/definitions/AirportsAPI.Controllers.AutoCompleteAirportNameController.Response' | ||
summary: Autocomplete airport names. Returns a maximum of 10 airport names. | ||
tags: | ||
- AutoCompleteAirportName | ||
/v1/countries: | ||
get: | ||
operationId: CountryList_CountryAirportList | ||
responses: | ||
'200': | ||
description: OK | ||
schema: | ||
$ref: '#/definitions/AirportsAPI.Controllers.CountryListController.CountryListResponse' | ||
summary: Country list. Returns a list of countries where airport data is available | ||
tags: | ||
- CountryList | ||
'/v1/country/airport_list/{country_code}': | ||
get: | ||
description: 'Required parameters: country code (ISO 3166-1), airport_service_type.' | ||
operationId: CountryAirportList_CountryAirportList | ||
parameters: | ||
- description: Country code (ISO 3166-1). This can be found via /countries | ||
in: path | ||
name: country_code | ||
required: true | ||
type: string | ||
- description: 'Required: Needs to be: All, Scheduled or NonScheduled' | ||
enum: | ||
- All | ||
- Scheduled | ||
- NonScheduled | ||
in: query | ||
name: airport_service_type | ||
required: true | ||
type: string | ||
responses: | ||
'200': | ||
description: OK | ||
schema: | ||
$ref: '#/definitions/AirportsAPI.Controllers.CountryAirportListController.AirportListResponse' | ||
summary: Country airports. Returns a list of airports for a country code(ISO 3166-1 alpha-2 code) | ||
tags: | ||
- CountryAirportList | ||
'/v1/nearest/airport_list/{result_count}/{latitude}/{longitude}': | ||
get: | ||
description: 'Required parameters: result_count, latitude, longitude, airport_service_type' | ||
operationId: NearestAirports_NearestAirportList | ||
parameters: | ||
- description: 'Required: Number of airports to return. Min: 1 Max: 20' | ||
format: int32 | ||
in: path | ||
name: result_count | ||
required: true | ||
type: integer | ||
- description: 'Required: Latitude' | ||
format: double | ||
in: path | ||
name: latitude | ||
required: true | ||
type: number | ||
- description: 'Required: Longitude' | ||
format: double | ||
in: path | ||
name: longitude | ||
required: true | ||
type: number | ||
responses: | ||
'200': | ||
description: OK | ||
schema: | ||
$ref: '#/definitions/AirportsAPI.Controllers.NearestAirportsController.Response' | ||
summary: Search for airports by location | ||
tags: | ||
- NearestAirports | ||
definitions: | ||
AirportsAPI.Controllers.AirportDetailsController.Response: | ||
properties: | ||
airport_list: | ||
items: | ||
$ref: '#/definitions/AirportsAPI.Models.Airport' | ||
type: array | ||
disclaimer: | ||
type: string | ||
message: | ||
type: string | ||
status_code: | ||
type: string | ||
type: object | ||
AirportsAPI.Controllers.AirportIATAController.Response: | ||
properties: | ||
airport_list: | ||
items: | ||
$ref: '#/definitions/AirportsAPI.Models.Airport' | ||
type: array | ||
disclaimer: | ||
type: string | ||
message: | ||
type: string | ||
status_code: | ||
type: string | ||
type: object | ||
AirportsAPI.Controllers.AutoCompleteAirportNameController.Response: | ||
properties: | ||
airport_list: | ||
items: | ||
$ref: '#/definitions/AirportsAPI.Models.AirportListAutocomplete' | ||
type: array | ||
disclaimer: | ||
type: string | ||
message: | ||
type: string | ||
status_code: | ||
type: string | ||
type: object | ||
AirportsAPI.Controllers.CountryAirportListController.AirportListResponse: | ||
properties: | ||
airport_list: | ||
items: | ||
$ref: '#/definitions/AirportsAPI.Models.AirportList' | ||
type: array | ||
country: | ||
$ref: '#/definitions/AirportsAPI.Models.Country' | ||
disclaimer: | ||
type: string | ||
message: | ||
type: string | ||
status_code: | ||
type: string | ||
type: object | ||
AirportsAPI.Controllers.CountryListController.CountryListResponse: | ||
properties: | ||
country: | ||
items: | ||
$ref: '#/definitions/AirportsAPI.Models.Country' | ||
type: array | ||
disclaimer: | ||
type: string | ||
message: | ||
type: string | ||
status_code: | ||
type: string | ||
type: object | ||
AirportsAPI.Controllers.NearestAirportsController.Response: | ||
properties: | ||
airport_list: | ||
items: | ||
$ref: '#/definitions/AirportsAPI.Models.Airport' | ||
type: array | ||
disclaimer: | ||
type: string | ||
message: | ||
type: string | ||
status_code: | ||
type: string | ||
type: object | ||
AirportsAPI.Models.Airport: | ||
properties: | ||
Country: | ||
$ref: '#/definitions/AirportsAPI.Models.Location.Country' | ||
Frequency: | ||
items: | ||
$ref: '#/definitions/AirportsAPI.Models.Frequency' | ||
type: array | ||
Region: | ||
$ref: '#/definitions/AirportsAPI.Models.Location.Region' | ||
Runway: | ||
items: | ||
$ref: '#/definitions/AirportsAPI.Models.Runway' | ||
type: array | ||
airport_name: | ||
type: string | ||
airport_type: | ||
type: string | ||
elevation_ft: | ||
type: string | ||
gps_code: | ||
type: string | ||
iata_code: | ||
type: string | ||
latitude: | ||
type: string | ||
local_code: | ||
type: string | ||
location: | ||
type: string | ||
longitude: | ||
type: string | ||
scheduled_service: | ||
type: boolean | ||
website: | ||
type: string | ||
wikipedia: | ||
type: string | ||
type: object | ||
AirportsAPI.Models.AirportList: | ||
properties: | ||
airport_name: | ||
type: string | ||
airport_type: | ||
type: string | ||
iata_code: | ||
type: string | ||
latitude: | ||
type: string | ||
location: | ||
type: string | ||
longitude: | ||
type: string | ||
type: object | ||
AirportsAPI.Models.AirportListAutocomplete: | ||
properties: | ||
label: | ||
type: string | ||
value: | ||
type: string | ||
type: object | ||
AirportsAPI.Models.Country: | ||
properties: | ||
continent: | ||
type: string | ||
country_code: | ||
type: string | ||
flag_url: | ||
type: string | ||
name: | ||
type: string | ||
type: object | ||
AirportsAPI.Models.Frequency: | ||
properties: | ||
desc: | ||
type: string | ||
frequency_mhz: | ||
type: string | ||
frequency_type: | ||
type: string | ||
type: object | ||
AirportsAPI.Models.Location.Country: | ||
properties: | ||
country_code: | ||
type: string | ||
flag_url: | ||
type: string | ||
name: | ||
type: string | ||
type: object | ||
AirportsAPI.Models.Location.Region: | ||
properties: | ||
local_code: | ||
type: string | ||
name: | ||
type: string | ||
region_code: | ||
type: string | ||
type: object | ||
AirportsAPI.Models.Runway: | ||
properties: | ||
closed: | ||
type: boolean | ||
hE_latitude: | ||
type: string | ||
hE_longitude: | ||
type: string | ||
he_displaced_threshold_ft: | ||
type: string | ||
he_elevation_ft: | ||
type: string | ||
he_heading_deg: | ||
type: string | ||
le_displaced_threshold_ft: | ||
type: string | ||
le_elevation_ft: | ||
type: string | ||
le_heading_deg: | ||
type: string | ||
le_latitude: | ||
type: string | ||
le_longitude: | ||
type: string | ||
length_ft: | ||
type: string | ||
lighted: | ||
type: boolean | ||
surface_type: | ||
type: string | ||
width_ft: | ||
type: string | ||
type: object |