Airport Vertical
Samples
Sample 1
Create a new airport
- Find "POST/airports".
- Change all the details in Notepad as per the example below:
{
"name": "Amsterdam Schiphol Airport",
"iata-code": "AMS",
"icao-code": "EHAM",
"country": "NL",
"time-zone": "CET",
"geo-coordinate": {
"latitude": 52.308056,
"longitude": 4.764167
}
}
After changing the data structure to your needs, you can insert the data.
- Run the POST call.
- If POST is successfully executed, the response code will be 200. The airport is now created and stored in Aviation Data Hub and accessible at any time.
Sample 2
Query the created airport
For more information regarding filtering, please refer to the ADH User Manual.
- Go to "GET/airports/{iata-code}" and prepare it with the parameter set to "AMS".
- Execute the GET request and check the server response.
- If the execution is successful, you will see the response code 200 and the airport details under the response body.
Sample 3
Adding additional attributes
- You can add additional attributes or information by using the previously edited value in Notepad. The additional attributes need to be added in a valid JSON format.
- Add the attribute "terminal" in Notepad, as per the example below:
{
"name": "Amsterdam Schiphol Airport",
"iata-code": "AMS",
"icao-code": "EHAM",
"country": "NL",
"time-zone": "CET",
"geo-coordinate": {
"latitude": 52.308056,
"longitude": 4.764167
},
"terminal": 3
}
- Run the POST call.
- When the POST request is successfully executed, the response code will be 200. The airport is now updated.
- Repeat the steps in Exercise 2 above, and your added attribute will be shown.