Skip to content

This is my project Polling System APIs where you can check whether your APIs is working fine or not, Before its available for public domain. Below is the Hosting URL . It may take some time to open in browser.

Notifications You must be signed in to change notification settings

mdadnan07/Polling-System-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-> Polling System APIs

-> HOSTING LINK :

-> API DOCUMENTATION LINK :

-> BUILT WITH :

  • NODEJS
  • EXPRESS JS
  • MONGODB
  • MONGOOSE

-> FEATURES :

  • 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

-> Required Routes (Remember, in a real test, you won’t be given routes mostly) :

  • 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)✅

-> SCREENSHOTS OF PROJECT :

pollingsystemAPI createQue optionCreate optionShow addVote optionDelete queDelte

About

This is my project Polling System APIs where you can check whether your APIs is working fine or not, Before its available for public domain. Below is the Hosting URL . It may take some time to open in browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published