KongAir APIs

Delete a booking

Deletes a booking from the system.

delete
https://api.kongair.dev/bookings/{ticketNumber}

Path Parameters

ticketNumberstringrequired

The ticket number to delete

Response

Booking deleted successfully

delete/bookings/{ticketNumber}
 

Health check endpoint for Kubernetes

Endpoint that returns the service health status.

get
https://api.kongair.dev/routes/health

Response

application/json

Service is healthy

statusstring

Example:OK

get/routes/health
 
application/json

Request a specific KongAir route by id

Returns a specific route from a given Route ID

get
https://api.kongair.dev/routes/{id}

Path Parameters

idstringrequired

String route ID

Response

application/json

Successful response with the found Route

Route

idstringrequired
originstringrequired
destinationstringrequired
avg_durationintegerrequired
get/routes/{id}
 
application/json

Request all the KongAir routes

Returns all the routes KongAir is currently registered to fly.\nA Route is a pairing between origin and destination airport codes.

get
https://api.kongair.dev/routes

Query Parameters

originarray[string]

Filter routes by origin airport code. To filter by multiple origin airports, provide an array of airport codes (e.g., origin=LHR&origin=JFK).

Response

200 application/json

Successful response with the registered Routes

idstringrequired
originstringrequired
destinationstringrequired
avg_durationintegerrequired
get/routes
 
200 application/json

Flight

object
numberstringrequired
route_idstringrequired
scheduled_departurestring(date-time)required
scheduled_arrivalstring(date-time)required
Example