Skip to content

EldhoseKuriakose/Bus-Ticket-Booking

Repository files navigation

Bus-Ticket-Booking

Backend API of bus ticket booking system

Setting up on system

  1. Clone the repository to the system
  2. npm install - To install required packages
  3. npm test - To run unit tests
  4. npm start - To start the server
Postman

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

Technologies used

nodeJS, ExpressJS, MongoDB

About

Backend API of bus ticket booking system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published