Skip to content
关注公众号,获取新课通知

查看考试详情


接口URL

http://demonuxtapi.dishait.cn/admin/s/user_test/read?id=1

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
tokeneyj...NjString用户token
schoolid11Integer网校id

请求Query参数

参数名示例值参数类型是否必填参数描述
id1Integer考试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
}