- 认证中心
- 用户管理
- 公告功能
- 班级管理
- 错题本功能
- 题库管理
- 考试功能
- 证书功能
- 试题管理
- 成绩管理
- 答卷管理
- 刷题管理
- 考试记录
- 统计信息
新增考试
开发中
POST
http://127.0.0.1:8080/api/exams
请求参数
Header 参数
Authorization
string
token
Body 参数application/json
title
string
考试名称
status
integer
必需
examDuration
integer
考试时长,单位分钟
grossScore
integer
必需
passedScore
integer
必需
startTime
string
可选
endTime
string
可选
gradeIds
string
必需
repoId
integer
题库id
certificateId
integer
证书Id
radioCount
integer
单选题数量
radioScore
integer
每道单选分数
multiCount
integer
多选题数量
multiScore
integer
每道多选题分数
judgeCount
integer
判断题个数
judgeScore
integer
每道判断题分数
saqCount
integer
简答题个数
saqScorre
integer
每道简答题分数
示例
{
"title": "string",
"status": 0,
"examDuration": 0,
"grossScore": 0,
"passedScore": 0,
"startTime": "string",
"endTime": "string",
"gradeIds": "string",
"repoId": 0,
"certificateId": 0,
"radioCount": 0,
"radioScore": 0,
"multiCount": 0,
"multiScore": 0,
"judgeCount": 0,
"judgeScore": 0,
"saqCount": 0,
"saqScorre": 0
}
示例代码
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:8080/api/exams' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "string",
"status": 0,
"examDuration": 0,
"grossScore": 0,
"passedScore": 0,
"startTime": "string",
"endTime": "string",
"gradeIds": "string",
"repoId": 0,
"certificateId": 0,
"radioCount": 0,
"radioScore": 0,
"multiCount": 0,
"multiScore": 0,
"judgeCount": 0,
"judgeScore": 0,
"saqCount": 0,
"saqScorre": 0
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
msg
string
必需
示例
{
"code": 200,
"data": {},
"msg": "添加成功"
}
修改于 2024-04-08 01:28:23