POST api/ExaminationManage/SaveQuestions

Request Information

URI Parameters

None.

Body Parameters

SaveQuestionsDto
NameDescriptionTypeAdditional information
id

integer

None.

exam_id

integer

None.

exam_type

integer

None.

exam_questions

string

None.

question_options_a

string

None.

question_options_b

string

None.

question_options_c

string

None.

question_options_d

string

None.

right_answer

string

None.

left_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "exam_id": 1,
  "exam_type": 2,
  "exam_questions": "sample string 3",
  "question_options_a": "sample string 4",
  "question_options_b": "sample string 5",
  "question_options_c": "sample string 6",
  "question_options_d": "sample string 7",
  "right_answer": "sample string 8",
  "left_id": 9
}

application/xml, text/xml

Sample:
<SaveQuestionsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI.ViewModel">
  <exam_id>1</exam_id>
  <exam_questions>sample string 3</exam_questions>
  <exam_type>2</exam_type>
  <id>1</id>
  <left_id>9</left_id>
  <question_options_a>sample string 4</question_options_a>
  <question_options_b>sample string 5</question_options_b>
  <question_options_c>sample string 6</question_options_c>
  <question_options_d>sample string 7</question_options_d>
  <right_answer>sample string 8</right_answer>
</SaveQuestionsDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResponseOfInt32
NameDescriptionTypeAdditional information
data

integer

None.

msg

string

None.

code

integer

None.

total

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": 1,
  "msg": "sample string 2",
  "code": 3,
  "total": 4
}

application/xml, text/xml

Sample:
<BaseResponseOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI">
  <code>3</code>
  <msg>sample string 2</msg>
  <total>4</total>
  <data>1</data>
</BaseResponseOfint>