V1::ExamQuestionsController
Exam Questions
show
View a content exam_question
URL
GET /exam_questions/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | Identifier the exam_question |
Objeto resposta
ExamQuestion | The requested exam_question |
create
Create associative exam question Create discursive exam question Create multiple choice exam question
URL
POST /exam_questionsParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
quiz_id | Integer | Quiz of the associative exam question |
associative_exam_question | Hash | The associative exam question to create |
associative_exam_question[title] | String | Title of the associative exam question |
quiz_id | Integer | Quiz of the discursive exam question |
discursive_exam_question | Hash | The discursive exam question to create |
discursive_exam_question[title] | String | Title of the discursive exam question |
quiz_id | Integer | Quiz of the multiple choice exam question |
multiple_choice_exam_question | Hash | The multiple choice exam question to create |
multiple_choice_exam_question[title] | String | Title of the multiple choice exam question |
options_attributes[title] | String | Title of the multiple choice option |
Parâmetros opcionais
Nome | Tipo | Descrição |
---|---|---|
associative_exam_question[point] | Integer | Point of the associative exam question |
associative_exam_question[options_attributes] | Hash | The associative option to create |
associative_exam_question[options_attributes][first_assertion_attributes] | Hash | The first assertion to create |
associative_exam_question[options_attributes][first_assertion_attributes][text] | String | The text of first assertion |
associative_exam_question[options_attributes][second_assertion_attributes] | Hash | The second assertion to create |
associative_exam_question[options_attributes][second_assertion_attributes][text] | String | The text of second assertion |
discursive_exam_question[point] | Integer | Point of the discursive exam question |
multiple_choice_exam_question[point] | Integer | Point of the multiple choice exam question |
multiple_choice_exam_question[options_attributes] | Hash | The multiple choice option to create |
options_attributes[correct] | Boolean | Defines it is correctt multiple choice option |
update
Update an existing associative exam question Update an existing discursive exam question Update an existing multiple choice exam question
URL
PUT/PATCH /exam_question/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
quiz_id | Integer | Quiz of the associative exam question |
exam_question | Hash | The associative exam question to update |
exam_question[title] | String | Title of the associative exam question |
quiz_id | Integer | Quiz of the discursive exam question |
exam_question | Hash | The discursive exam question to update |
exam_question[title] | String | Title of the discursive exam question |
quiz_id | Integer | Quiz of the multiple choice exam question |
exam_question | Hash | The multiple choice exam question to update |
exam_question[title] | String | Title of the multiple choice exam question |
options_attributes[title] | String | Title of the multiple choice option |
Parâmetros opcionais
Nome | Tipo | Descrição |
---|---|---|
exam_question[point] | Integer | Point of the associative exam question |
exam_question[options_attributes] | Hash | The associative option to update |
associative_exam_question[options_attributes][id] | Integer | Id of the associative option to update |
associative_exam_question[options_attributes][first_assertion_attributes] | Hash | The first assertion to update |
associative_exam_question[options_attributes][first_assertion_attributes][text] | String | The text of first assertion |
associative_exam_question[options_attributes][second_assertion_attributes] | Hash | The second assertion to update |
associative_exam_question[options_attributes][second_assertion_attributes][text] | String | The text of second assertion |
exam_question[point] | Integer | Point of the discursive exam question |
exam_question[point] | Integer | Point of the multiple choice exam question |
multiple_choice_exam_question[options_attributes] | Hash | The multiple choice option to update |
options_attributes[correct] | Boolean | Defines it is correctt multiple choice option |
destroy
Delete exam_question
URL
DELETE /exam_question/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | Id of an exam_question |