Coder Social home page Coder Social logo

eval-mod3's Introduction

Quizzer API

Getting Started

Install dependencies:

npm install

Start the server:

node index.js

Endpoints

Quizzes

GET /quizzes

Returns a list of all quizzes

GET /quizzes/:quizId

Returns a single quiz

  • Parameters:
    • quizId: (required) - the quiz ID

Questions

POST /quizzes/:quizId/questions

Returns the specified quiz with added question

  • Parameters:

    • quizId: (required) - the quiz ID
  • Body Content:

    • You must pass in a full question object like so:
{
  "title": "Question Title",
  "answers": []
}
PUT /quizzes/:quizId/questions/:questionId

Updates an entire question

  • Parameters:

    • quizId: (required) - the quiz ID
    • questionId: (required) - the question ID
  • Body Content:

    • You must pass in a full question object like so:
{
  "title": "Question Title",
  "answers": []
}
DELETE /quizzes/:quizId/questions/:questionId

Removes the specified question

  • Parameters:
    • quizId: (required) - the quiz ID
    • questionId: (required) - the question ID

Answers

POST /quizzes/:quizId/questions/:questionId/answers

Returns the specified question with the added answer

  • Parameters:

    • quizId: (required) - the quiz ID
    • questionId: (required) - the question ID
  • Body Content:

    • You must pass in a full answer object like so:
{
  "title": "Answer title",
  "score": 5
}
PUT /quizzes/:quizId/questions/:questionId/answers/:answerId

Updates an entire answer within a question.

  • Parameters:

    • quizId: (required) - the quiz ID
    • questionId: (required) - the question ID
    • answerId: (required) - the answer ID
  • Body Content:

    • You must pass in a full answer object like so:
{
  "title": "Answer title",
  "score": 5
}
DELETE /quizzes/:quizId/questions/:questionId/:answerId

Removes the specified answered

  • Parameters:
    • quizId: (required) - the quiz ID
    • questionId: (required) - the question ID
    • answerId: (required) - the answer ID

Scores

POST /scores/:scoreValue

Submits a user's score and returns a detailed score summary

  • Parameters:
    • scoreValue: (required) - a numeric score

eval-mod3's People

Contributors

madison-codes avatar

Watchers

Steve Kinney avatar  avatar

eval-mod3's Issues

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.