- 认证中心
- 用户管理
- 公告功能
- 班级管理
- 错题本功能
- 题库管理
- 考试功能
- 证书功能
- 试题管理
- 成绩管理
- 答卷管理
- 刷题管理
- 考试记录
- 统计信息
试题修改
开发中
PUT
http://127.0.0.1:8080/api/questions/{id}
请求参数
Path 参数
id
integer
题目id
Body 参数application/json
content
string
题干
repoId
integer
所属题库
questionImage
object
题干图片,上传文件
analysis
string
试题解析
answers
array [object {3}]
选项的JSON数组
isRight
integer
可选
answerImage
object
选项图片
answerContent
string
选项内容
示例
{
"content": "string",
"repoId": 0,
"questionImage": {},
"analysis": "string",
"answers": [
{
"isRight": 0,
"answerImage": {},
"answerContent": "string"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1:8080/api/questions/' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": "string",
"repoId": 0,
"questionImage": {},
"analysis": "string",
"answers": [
{
"isRight": 0,
"answerImage": {},
"answerContent": "string"
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
msg
string
必需
示例
{
"code": 200,
"data": {},
"msg": "修改成功"
}
修改于 2024-04-15 01:55:15