用户工具

站点工具


api:exam

paper 问卷获取

  https://api.xlongwei.com/service/exam/paper
type 问题分类,示例:test1
id 问卷标识,示例:paper1
answer 回答标识,用于查看回答情况
questions 问题列表,[{question}]
result 回答结果,{id:{r,a,n}}

question={id,q,a,b,c,d,r,n},id为type.no,question问题内容,a b c d选项,right正确选项,note解析

接口示例:type paper answer

问卷示例:type paper answer

commit 问卷提交

  https://api.xlongwei.com/service/exam/commit
answers 回答情况,[{id:answer}]
result 回答结果,{id:{r,a,n},corrects,answerId}

result={id:{r,a,n},corrects,answerId},right正确选项,answer用户作答,note解析,corrects正确个数

excel 问卷导入

  https://api.xlongwei.com/service/exam/excel
file excel文件上传
sheets sheet个数
sheetName {success,badRows:[row]},导入成功行数+失败行号

模板文件,其中java1、test1是题库,paper1是自定义问卷

api/exam.txt · 最后更改: 2020/03/22 10:25 由 admin