Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 447 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 447 Bytes

Ticket-Reservation-API

This api consists of many endpoints /register : payload takes (email, password, name) /login : payload takes (email, password)

/ticket/makeReservation : payload takes (trainId, departureTime, arrivalTime, from(place), to(place)) /ticket/getAvailableTickets : payload takes (from(place), to(place)) /ticket/cancelReservation/:id : query id(reservation id)

/voyage/availableSeats : payload takes(from(place), to(place))