- NODEJS
- EXPRESS JS
- MONGODB
- MONGOOSE
- Create a question (you can add as many questions as you want)
- Add options to a question
- Add a vote to an option of question
- Delete a question → (optional: A question can’t be deleted if one of it’s options has votes)
- Delete an option → (optional: An option can’t be deleted if it has even one vote given to it)
- View a question with it’s options and all the votes given to it
-
localhost:3000/api/v1/question/create (To create a question)✅
-
localhost:3000/api/v1/question/options/:id/create (To add options to a specific question)
-
localhost:3000/api/v1/question/delete/:id (To delete a question)✅
-
localhost:3000/api/v1/question/options/delete/:id (To delete an option)
-
localhost:3000/api/v1/question/options/:id/add_vote (To increment the count of votes)
-
localhost:3000/api/v1/question/view/:id (To view a question and it’s options)✅