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

开始考试


接口URL

http://demonuxtapi.dishait.cn/mobile/testpaper/read?id=12

请求方式

GET

Content-Type

form-data

请求Header参数

参数名示例值参数类型是否必填参数描述
appidbd9d01ecc75dbbaaefceString网校唯一appid
tokeneyj...NjString认证令牌

请求Query参数

参数名示例值参数类型是否必填参数描述
id12Integer试卷ID

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"id": 12,
		"title": "测试试卷111",
		"total_score": 100,
		"pass_score": 60,
		"expire": 60,
		"testpaper_questions": [
			{
				"id": 42,
				"score": 25,
				"question_id": 73,
				"title": "说说你的看法",
				"remark": "问题解析",
				"type": "answer",
				"user_value": [
					""
				]
			},
			{
				"id": 43,
				"score": 25,
				"question_id": 72,
				"title": "请问我年龄多大",
				"remark": "问题解析",
				"type": "completion",
				"user_value": [
					""
				]
			},
			{
				"id": 44,
				"score": 0,
				"question_id": 71,
				"title": "请问我是男生还是女生",
				"remark": "问题解析",
				"type": "trueOrfalse",
				"options": [
					"正确",
					"错误"
				],
				"user_value": -1
			},
			{
				"id": 45,
				"score": 25,
				"question_id": 70,
				"title": "你的名字叫什么",
				"remark": "问题解析",
				"type": "checkbox",
				"options": [
					"张三",
					"李四",
					"王五",
					"王五哈"
				],
				"user_value": []
			},
			// ...
		],
		"user_test_id": 7
	},
	"code": 20000
}