Questions=
Http Verb | Method Path | Parameter | Description |
---|---|---|---|
GET |
/ |
questions | Get all the available questions |
GET | /question/ |
question* - Question text body
related_object_id* - DeckID
user_id* - User creator id
choices* - Array of question choices and its correctness
difficulty - Difficulty of the question
Create a question related to a deck.
qid - Question id
{qid} | Question ID | Get the question with id: qid |
POST | /slide/question | question* - Question text body related_object_id* - DeckID user_id* - User creator id choices* - Array of question choices and its correctness difficulty - Difficulty of the question |
Create a question related to a |
slide. |
POST |
/deck/ |
question |
question* - Question text body related_object_id* - |
DeckID user_id* - User creator id choices* - Array of question choices and its correctness difficulty - Difficulty of the question |
Create a question related to a |
deck. | |
PUT | /question |
/{qid} | qid - Question id question* - Question text body related_object* - 'deck' or 'slide' related_object_id* - |
DeckID user_id* - User creator id choices* - Array of question choices and its correctness difficulty - Difficulty of the question | Replace a question related to a |
deck / Slide. |
GET |
/deck/{ |
deck-id}/questions |
deck- |
id - Deck ID | Get |
Replace a question by its ID
all the questions related to a Deck | |||
GET | /slide/{slide-id}/questions | slide-id - Slide ID | Get all the questions related to a Slide |
DELETE | /question/{qid} | qid - Question id | Delete a question from the questions collection |