Backend API of bus ticket booking system
- Clone the repository to the system
npm install
- To install required packagesnpm test
- To run unit testsnpm start
- To start the server
POST
/tickets/book
- To book ticket - Provide name, phone, email, age, gender to book ticket.
PATCH
/tickets/update/:id
- To update user details by id - Update user details by providing updated details of name,
phone, email, age, gender.
GET
/tickets/viewdetails/:id
- To view user details by id
GET
/tickets/viewstatus/:id
- To view status of ticket by id
GET
/tickets/viewopen
- To view all open tickets
GET
/tickets/viewclose
- To view all closed tickets
PUT
/tickets/admin/resetall
- Open up all tickets
Import postman collection to postman to run commands
nodeJS, ExpressJS, MongoDB