创建随机试卷
开发中
POST
/examPaper/createRandomPaper
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
examPaperName
string
试卷名称
duration
number
答题时间不能为空
isManual
number
组卷方式(1人工组卷,2随机组卷)
allowMakeup
number
是否允许补考(1-允许补考,0-不允许补考)
passingScore
number
合格分数
captureCount
number
抓拍次数
paperDesc
string
试卷说明
questionBankIds
array[string]
题库ids
bigQuestionList
object
大题列表
bigQuestionName
string
大题列表名称
bigQuestionSingleScore
number
单个试题分值
questionType
integer
题目类型(1单选,2多选,3判断)
smallQuestionList
object
小题列表
示例
{
"examPaperName" : "测试随机组卷3.27",
"duration" : 10,
"isManual" : 2,
"allowMakeup" : 0,
"passingScore" : 10,
"captureCount" : 1,
"paperDesc" : "这是一个测试随机组卷的测试",
"questionBankIds" : [
1901193263717597186,
1901084089054343169
],
"bigQuestionList" : [
{
"bigQuestionName" : "单选题",
"bigQuestionSingleScore" : 5,
"questionType" : 1,
"smallQuestionList" : [
{
"questionBankId" : "1901193263717597186",
"questionCount" : 2
}
]
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:9000/examPaper/createRandomPaper' \
--header 'Content-Type: application/json' \
--data-raw '{
"examPaperName" : "测试随机组卷3.27",
"duration" : 10,
"isManual" : 2,
"allowMakeup" : 0,
"passingScore" : 10,
"captureCount" : 1,
"paperDesc" : "这是一个测试随机组卷的测试",
"questionBankIds" : [
1901193263717597186,
1901084089054343169
],
"bigQuestionList" : [
{
"bigQuestionName" : "单选题",
"bigQuestionSingleScore" : 5,
"questionType" : 1,
"smallQuestionList" : [
{
"questionBankId" : "1901193263717597186",
"questionCount" : 2
}
]
}
]
}'
返回响应
🟢200成功
application/json
Body
successful
boolean
必需
code
integer
必需
message
string
必需
timestamp
string
必需
示例
{
"successful": true,
"code": 0,
"message": "string",
"timestamp": "string"
}