POST api/Examination/GetQuestions
Request Information
URI Parameters
None.
Body Parameters
UpDownDtoName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
turnId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "turnId": 2 }
application/xml, text/xml
Sample:
<UpDownDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI.ViewModel"> <id>1</id> <turnId>2</turnId> </UpDownDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResponseOfGetQuestionsDtoName | Description | Type | Additional information |
---|---|---|---|
data | GetQuestionsDto |
None. |
|
msg | string |
None. |
|
code | integer |
None. |
|
total | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "singleTotal": 1, "multipleTotal": 2, "judgmentTotal": 3, "allTotal": 4, "perAnswer": "sample string 5", "id": 6, "exam_id": 7, "exam_type": 8, "exam_questions": "sample string 9", "question_options_a": "sample string 10", "question_options_b": "sample string 11", "question_options_c": "sample string 12", "question_options_d": "sample string 13", "right_answer": "sample string 14", "add_time": "2024-11-25T16:40:00.3906637+08:00", "add_id": 16, "add_name": "sample string 17", "left_id": 18, "right_id": 19 }, "msg": "sample string 1", "code": 2, "total": 3 }
application/xml, text/xml
Sample:
<BaseResponseOfGetQuestionsDtogLTqVTfs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI"> <code>2</code> <msg>sample string 1</msg> <total>3</total> <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/LearnAPI.ViewModel"> <add_id>16</add_id> <add_name>sample string 17</add_name> <add_time>2024-11-25T16:40:00.3906637+08:00</add_time> <exam_id>7</exam_id> <exam_questions>sample string 9</exam_questions> <exam_type>8</exam_type> <id>6</id> <left_id>18</left_id> <question_options_a>sample string 10</question_options_a> <question_options_b>sample string 11</question_options_b> <question_options_c>sample string 12</question_options_c> <question_options_d>sample string 13</question_options_d> <right_answer>sample string 14</right_answer> <right_id>19</right_id> <d2p1:allTotal>4</d2p1:allTotal> <d2p1:judgmentTotal>3</d2p1:judgmentTotal> <d2p1:multipleTotal>2</d2p1:multipleTotal> <d2p1:perAnswer>sample string 5</d2p1:perAnswer> <d2p1:singleTotal>1</d2p1:singleTotal> </data> </BaseResponseOfGetQuestionsDtogLTqVTfs>