Giter VIP home page Giter VIP logo

polling_api's Introduction

polling_api

Getting started

  • If you don't already have one, create a GitHub account.
  • Open the Node.js core repository web page.
  • Use the "Fork" button to fork the repository:Image
  • On the page for your own fork, use the "Clone or download" button and copy the URL for cloning to your clipboard:Screenshot
  • On the command line, in your home directory or a directory you have for projects, run:
git clone <paste that URL here>;
  • When that is done:
cd node
  • Then:
git remote add upstream https://github.com/nodejs/node.git
  • Then:

Install the required packages and run the project by npm start command.

  • Then:

Open Postman, to ADD a new Question make a POST request with URL localhost:8000/api/v1/questions/create with raw data
{ "title":"Title" } .

  • Then:

To ADD Options to the Question make a POST request with localhost:8000/api/v1/questions/QuestionId/options/create with raw data
{ "text":"Text" } .

  • Then:

To VIEW a Question make a GET request with URL localhost:8000/api/v1/questions/QuestionId.

  • Then:

To ADD a Vote make a POST request with URL localhost:8000/api/v1/options/OptionId/add_vote it will increment vote count by 1.

  • Then:

To DELETE an Option make a DELETE request with URL localhost:8000/api/v1/options/OptionId/delete.

  • Then:

To DELETE a Question make a DELETE request with URL localhost:8000/api/v1/questions/QuestionId/delete.

polling_api's People

Contributors

deepak-singh343 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.