Provides the KongAir routing information including flight origin and destination codes. The API also provdes average duration of flight time for each route.
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_ROUTES_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:
./routes <port>
Get all routes:
curl -s localhost:8081/routes
Get route by route code
curl -s localhost:8081/routes/LHR-SIN