KongAir APIs

Delete a flight

Deletes a flight from the system.

delete
https://api.kongair.dev/flights/{flightNumber}

Path Parameters

flightNumberstringrequired

The flight number to delete

Response

Flight deleted successfully

delete/flights/{flightNumber}
 

Fetch more details about a flight

Fetch more details about a flight

get
https://api.kongair.dev/flights/{flightNumber}/details

Path Parameters

flightNumberstringrequired

The flight number

Response

application/json

Successful response with the requested flight details

FlightDetails

flight_numberstringrequired
in_flight_entertainmentbooleanrequired
meal_optionsarray[string]required
aircraft_typestringrequired
get/flights/{flightNumber}/details
 
application/json

Health check endpoint for Bookings service

Endpoint that returns the Bookings service health status.

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

Response

application/json

Service is healthy

statusstring

Example:OK

get/bookings/health
 
application/json

Get a customer's current bookings

Returns a list of bookings for the current customer.

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

Response

application/json

Successful Response

ticket_numberstringrequired
flightobjectrequired
Show Child Parameters
seatstring
get/bookings
 
application/json

Create a new customer booking

Creates a new booking for a customer.

post
https://api.kongair.dev/bookings

Body

application/json

Booking request details

BookingRequest

flight_numberstringrequired
seatstring

Response

application/json

Booking Created Successfully

BookingResponse

ticket_numberstringrequired
post/bookings

Body

{ "flight_number": "KA924", "seat": "32A" }
 
application/json