Project Url - https://ticket-management-system-123.herokuapp.com/
Video Url - https://drive.google.com/file/d/1gdPSwnbEInSzpPtNG0iUihtBLnhohODc/view?usp=sharing
Log File Url - https://drive.google.com/file/d/1_egUdLit0k49cWMvf2ZOlWrEGv0y9_9X/view?usp=sharing
API Documentation URL - https://ticket-management-system-123.herokuapp.com/doc/
Steps to run:
- Open postman or insomnia
- copy the project url provided above and use it as base url to run all the routes
Steps to install:
- Clone the repo using
git clone https://github.com/Saurabh-crypto16/Assignment1.git
- Open the project in VS Code and install all the dependencies using
npm install
- Create a .env file and save PORT variable and MONGOURI variable to connect to database
- Once the dependencies are installed start the server using
npm start
POST /users/new
Description : To create a new user
returns : Bearer Token
POST /tickets/new
Description : To create a new ticket
returns : Ticket Id
GET /tickets/all
Description : To get all the tickets
returns : Json response containing all the ticket details
GET /tickets/all
Description : To get all the tickets
returns : Json response containing all the ticket details
GET /tickets/
Description :
/tickets/?status=open/close returns tickets according to status
/tickets/?title= searches for the particular title
/tickets/?priority=low/medium/high returns ticket according to priority
returns : Json response containing corresponding tickets details
POST /tickets/delete
Description : To delete a ticket
returns : ID of the deleted ticket
POST /tickets/markAsClosed
Description : change status of the ticket based on the given business logic
returns : Appropriate response message