KongAir APIs

Partially update an existing booking

Partially updates an existing booking.

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

Path Parameters

ticketNumberstringrequired

The ticket number to update

Body

application/json

Partial booking details to update

Booking

ticket_numberstringrequired
flightobjectrequired
Show Child Parameters
seatstring

Response

application/json

Booking updated successfully

Booking

ticket_numberstringrequired
flightobjectrequired
Show Child Parameters
seatstring
patch/bookings/{ticketNumber}

Body

{ "ticket_number": "ticket_number", "flight": {} }
 
application/json

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