Install dependencies:
npm install
Start the server:
node index.js
Returns a list of all quizzes
Returns a single quiz
- Parameters:
- quizId: (required) - the quiz ID
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": []
}
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": []
}
Removes the specified question
- Parameters:
- quizId: (required) - the quiz ID
- questionId: (required) - the question ID
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
}
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
}
Removes the specified answered
- Parameters:
- quizId: (required) - the quiz ID
- questionId: (required) - the question ID
- answerId: (required) - the answer ID
Submits a user's score and returns a detailed score summary
- Parameters:
- scoreValue: (required) - a numeric score