文档
测试

开始测试

GET
course/start_test/:id

接口描述

id 章节的ID 会获得测试联系的信息 参数中有id 后面接口用到的test_id 测试记录的ID

请求头

参数名
类型
描述
必填
Authori-zation
string
令牌 任何请求都加令牌,为了防止为空可以使用 Bearer 字符 返回参数状态码有三种 200(正确) 400(错误) 41000(未登录)
必填

请求参数

参数名
类型
描述
必填
item_type
1练习 2模拟 3测试
必填

响应参数

参数名
类型
描述
必填
status
int
返回状态码含有 200-正确码 400-错误码 41000-未登录码
必填
msg
string
返回信息,错误或者正确都在内
必填
data
array
返回的数据集合,正确数据请查看说明中的事例 item 代表是循环的数组,array 就是正常的数据
必填

说明 / 示例

{ "status": 200, "msg": "ok", "data": { 用户做题记录 "info": { "id": 1, "type": 0, "item_id": 16, "uid": 15, "score": "0.0", "truenum": 0, "is_full": 2, "use_time": 0, "createtime": 0, "is_pass": 2 }, 试题列表 "list": [ { "id": 1, "pid": 16, "questionid": 5, "score": "4", "lx_score": "0", "sort": 1, "title": "<p>1+2=?<br/></p>", "option_type": 2, "option": [ "1", "2", "3", "4", "3", "2" ], "answer": [ "C", "E" ], "analysis": "<p>就是3</p>", "user_data": [] 用户做题记录 空代表没做过 }, { "id": 2, "pid": 16, "questionid": 6, "score": "2", "lx_score": "0", "sort": 2, "title": "<p>1+2=?</p>", "option_type": 1, "option": [ "1", "2", "3", "4", "", "" ], "answer": [ "C" ], "analysis": "<p>3</p>", "user_data": [] }, { "id": 3, "pid": 16, "questionid": 7, "score": "2", "lx_score": "0", "sort": 3, "title": "<p>2+2=?</p>", "option_type": 1, "option": [ "3", "4", "5", "6", "", "" ], "answer": [ "B" ], "analysis": "<p>4</p>", "user_data": [] }, { "id": 4, "pid": 16, "questionid": 8, "score": "2", "lx_score": "0", "sort": 4, "title": "<p>2+3=?</p>", "option_type": 1, "option": [ "5", "4", "3", "2", "", "" ], "answer": [ "A" ], "analysis": "<p>5</p>", "user_data": [] } ] } }