KongAir APIs
Health check endpoint for Bookings service
Endpoint that returns the Bookings service health status.
get
https://api.kongair.dev/bookings/health
Response
application/json
Response
application/json
Service is healthy
statusstring
Example:OK
get/bookings/health
Authentication
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
Response
application/json
Successful Response
ticket_numberstringrequired
flightobjectrequired
Show Child Parameters
seatstring
get/bookings
Authentication
application/json
Create a new customer booking
Creates a new booking for a customer.
post
https://api.kongair.dev/bookings
Body
application/json
Body
application/json
Booking request details
BookingRequest
flight_numberstringrequired
seatstring
Response
application/json
Response
application/json
Booking Created Successfully
BookingResponse
ticket_numberstringrequired
post/bookings
Authentication
Body
{
"flight_number": "KA924",
"seat": "32A"
}
application/json
Get a specific booking by ticket number
Returns a specific booking given its ticket number.
get
https://api.kongair.dev/bookings/{ticketNumber}
Path Parameters
ticketNumberstringrequired
The ticket number
Response
application/json
Response
application/json
Successful response with the requested booking
Booking
ticket_numberstringrequired
flightobjectrequired
Show Child Parameters
seatstring
get/bookings/{ticketNumber}
Authentication
Path Parameters
application/json
Update an existing booking
Updates an existing booking completely.
put
https://api.kongair.dev/bookings/{ticketNumber}
Path Parameters
ticketNumberstringrequired
The ticket number to update
Body
application/json
Body
application/json
Updated booking details
Booking
ticket_numberstringrequired
flightobjectrequired
Show Child Parameters
seatstring
Response
application/json
Response
application/json
Booking updated successfully
Booking
ticket_numberstringrequired
flightobjectrequired
Show Child Parameters
seatstring
put/bookings/{ticketNumber}
Authentication
Path Parameters
Body
{
"ticket_number": "ticket_number",
"flight": {}
}
application/json