Provides the KongAir flights information including flight number and other details.
The API specification can be found in the openapi.yaml file.
The repository provides a Makefile
with common usage.
make test
make build
make run
In the Makefile
, the default port is read from the KONG_AIR_FLIGHTS_PORT
env var which is loaded via the parent base.mk file.
Alternatively the desired port can be passed to the built server executable directly, for example:
./flights <port>
Get all flights:
curl -s localhost:8080/flights
Get a specific flight by flight number:
curl localhost:8080/flights/KA0284
Get details for a specific flight by flight number:
curl localhost:8080/flights/KA0284/details