Polling Sysytem API | Backend Skilltest 3 | Coding Ninjas

Опубликовано: 22 Июль 2026
на канале: Developer_Ashis Yadav
183
1

Polling System API
A Polling System API using NOde JS and MongoDB have Multiple Features

Features:
Create a question.
Add options to a question.
Add a vote to an option of a question.
Delete a question (only if none of its options have votes).
Delete an option (only if it has no votes).
View a question with its options.
Routes:
POST /questions/create: Create a new question.

POST /questions/:id/options/create: Add options to a specific question.

GET /questions/:id Delete a question (optional: if no votes are associated with any option).

GET /options/:id Delete an option (optional: if it has no votes).

POST /options/:id/add_vote: Increment the vote count for a specific option.

GET /questions/:id View a question and its options, including the votes given to each option.

How to Setup
Download the Zip file and Extract it.

Github: https://github.com/WebGuyAshis/Pollin...

Open it with VS Code Editor, and open Terminal and run command "npm start". Project will start at : http://127.0.0.1:8000

Now Open Postman and Enjoy the Features!

#backend #skilltest #codingninja #pollingsystemapi #api #nodejs #hosting