Questions=
Http Verb | Method Path | Parameter | Description |
---|---|---|---|
GET | question/all | Get all the available questions | |
POST | question/deck/new | 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/deck/{qid} | qid - Question id 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 | Replace a question related to a deck. |
GET | question/deck/{id} | id - Deck ID | Get all the questions related to a Deck |
POST | question/slide/new | question* - Question text body related_object_id* - SlideID user_id* - User creator id choices* - Array of question choices and its correctness difficulty - Difficulty of the question | Method to create a question related to a Slide. |
PUT | question/slide/{qid} | qid - Question id question* - Question text body related_object_id* - SlideID user_id* - User creator id choices* - Array of question choices and its correctness difficulty - Difficulty of the question | Replace a question related to a SlideID. |
GET | question/{qid} | qid - Question id | Get a Question by its ID |
PUT | question/{qid} | qid - Question id | Replace a question by its ID |
DELETE | question/{qid} | qid - Question id | Delete a question from the questions collection |