The Air Ticket Booking app is a Node.js backend application for managing flight bookings. It provides endpoints for user registration, login, retrieving flight information, adding/updating/deleting flights, booking flights, and displaying a dashboard with booking details.
This endpoint should allow users to update the details of a specific flight identified by its ID.
204
flight id should be passed in params and new data in req.body : {"airline": "chikkuuu airline","flightNo": "176712","departure": "1:00","arrival": "3:00","departureTime": 2023-12-09","arrivalTime": "2002-12-09","seats": 2,"price": 12000}
DELETE
/api/flights/:id
This endpoint should allow users to delete a specific flight identified by its ID.
202
flight id should be passed in params
POST
/api/booking
This endpoint should allow the user to book flights.
201
flight id should be passed in params
GET
/api/dashboard
This point should list all the bookings so far with the user and flight details.
The Air Ticket Booking app is a Node.js backend application for managing flight bookings. It provides endpoints for user registration, login, retrieving flight information, adding/updating/deleting flights, booking flights, and displaying a dashboard with booking details.