Skip to content

获取考试详情

拥有此API的权限集
考试管理-查询

请求方式及url

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://api.xiaoe-tech.com/xe.examination.detail.get/1.0.0
  • 频率限制: 10秒2000次

接口调试

请求参数
响应结果
暂无响应数据

请求参数

参数名必选类型说明
access_tokenstring专属token
idstring考试id

请求示例

 {
    "access_token": "xe_xxxxx"
  }

返回参数

参数名类型说明
codeint状态码
msgstring请求状态描述信息
dataobject当前页数
data.exam_infoobject考试信息

data.exam_info 考试信息

参数名类型说明
namestring考试名称
img_urlstring考试封面图
img_url_compressedstring考试封面图压缩图
detailstring考试简介
total_questionint考试总题目数
total_scoreint考试总分
commit_countint考试提交人数
comment_countint考试批阅人数
exam_timeint考试限时时长
exam_chanceint考试次数 0-不限,大于0,则限制对应的考试次数
reexam_intervalint考试重考间隔
stateint考试状态0-未发布 1-已发布 2-删除 3-停止发布 4-定时发布
exam_time_radioint考试时间限制开关 0不限制 1限制
exam_start_timestring考试时间限制,开始时间
exam_end_timestring考试时间限制,结束时间
created_atstring考试创建时间
open_watermarkint考试水印 0-关闭 1-开启
immediate_reexamint考试未批阅可重考 0-关闭 1-开启

返回示例

{
    "code": 0,
    "data": {
        "exam_info": {
            "comment_count": 0,
            "commit_count": 0,
            "created_at": "2021-11-19 11:04:04",
            "detail": "<p>123</p>",
            "exam_chance": 1,
            "exam_end_time": "0000-00-00 00:00:00",
            "exam_start_time": "0000-00-00 00:00:00",
            "exam_time": 0,
            "exam_time_radio": 0,
            "img_url": "https://wechatapppro-1252524126.file.myqcloud.com/image/ueditor/82305700_1636016039.png",
            "img_url_compressed": "http://wechatapppro-1252524126.file.myqcloud.com/app2zAQRfES7918/image/compress/20011282305700_1636016039.png",
            "immediate_reexam": 0,
            "name": "测试随机试题数1",
            "open_watermark": 0,
            "reexam_interval": 1,
            "state": 1,
            "total_question": 5,
            "total_score": 10
        },
        "has_user": 0
    },
    "msg": "操作成功"
}