On this page
查看考试详情
接口URL
请求方式
GET
Content-Type
application/x-www-form-urlencoded
请求Header参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
token | eyj...Nj | String | 是 | 用户token |
schoolid | 11 | Integer | 是 | 网校id |
请求Query参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
id | 1 | Integer | 是 | 考试id |
成功响应示例
json5
{
"msg": "ok",
"data": {
"id": 1,
"score": 20,
"values": [
{
"type": "completion",
"answer": [
"填空题答案"
],
"score": 10
},
{
"type": "checkbox",
"answer": [
0,
1
],
"score": 10
}
],
"testpaper": {
"id": 1,
"title": "第一张试卷"
},
"questions": [
{
"score": 50,
"question": {
"id": 1,
"title": "<p>第一道填空题</p>",
"remark": "",
"type": "completion",
"value": {
"options": [
"填空1",
"填空2"
]
}
}
},
{
"score": 50,
"question": {
"id": 2,
"title": "<p>第一道多选题</p>",
"remark": "",
"type": "checkbox",
"value": {
"options": [
"选项1",
"选项2",
"选项3"
],
"value": [
0,
2
]
}
}
}
]
},
"code": 20000
}