Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Questions=

Http VerbMethod PathParameterDescription
GET
question
/
all
questions
Get all the available questions
POST
GET/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.

PUTquestion/deck/{qid}

qid - Question id

{qid}Question IDGet 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

Replace

Create a question related to a

deck

slide.

GET


POST
question
/deck/
{id}id - Deck IDGet all the questions related to a DeckPOST
question
/slide/new

question* - Question text body

related_object_id* -

SlideID

DeckID

user_id* - User creator id

choices* - Array of question choices and its correctness

difficulty - Difficulty of the question

Method to create

Create a question related to a

Slide

deck.

PUT/question
/slide
/{qid}

qid - Question id

question* - Question text body

related_object* - 'deck' or 'slide'

related_object_id* -

SlideID

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

SlideID

deck / Slide.


GET
question
/deck/{
qid
deck-id}/questions
qid
deck-
Question
id - Deck IDGet
a Question by its IDPUTquestion/{qid}
qid - Question id

Replace a question by its ID

DELETE
all the questions related to a Deck
GET/slide/{slide-id}/questionsslide-id - Slide IDGet all the questions related to a Slide
DELETE/question/{qid}
qid - Question id

Delete a question from the questions collection