50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
||
"openapi": "3.0.1",
|
||
"info": {
|
||
"title": "删除习题",
|
||
"description": "同步自 Apifox(试题管理),int64 主键按前端精度规范落为 string",
|
||
"version": "1.0.0"
|
||
},
|
||
"paths": {
|
||
"/safetyEval/question/del/{questionId}": {
|
||
"post": {
|
||
"summary": "删除习题",
|
||
"tags": ["试题管理"],
|
||
"parameters": [
|
||
{
|
||
"name": "questionId",
|
||
"in": "path",
|
||
"description": "试题id(后端 Long / Apifox 显示 int64;前端按字符串保证精度)",
|
||
"required": true,
|
||
"schema": { "type": "string" }
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "",
|
||
"content": {
|
||
"application/json": {
|
||
"schema": { "$ref": "#/components/schemas/SingleResponseVoid" }
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"components": {
|
||
"schemas": {
|
||
"SingleResponseVoid": {
|
||
"type": "object",
|
||
"properties": {
|
||
"success": { "type": "boolean", "description": "是否成功" },
|
||
"code": { "type": "string", "description": "响应码" },
|
||
"message": { "type": "string", "description": "响应消息" },
|
||
"errMessage": { "type": "string", "description": "错误响应消息" },
|
||
"data": { "description": "响应数据", "type": "null" }
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|