- 用户模块
- 题目模块
- 提交模块
- 竞赛模块
- 笔记模块
- ChatGPT聊天POST
修改题目
开发中
PUT
/problem/{id}
请求参数
Path 参数
id
string
必需
Header 参数
Authorization
string
必需
Body 参数application/json
title
string
可选
description
string
可选
difficulty
integer
可选
input_desc
string
可选
output_desc
string
可选
data_range
string
可选
tips
string
可选
max_time
integer
可选
max_memory
integer
可选
source
string
可选
示例
{
"title": "string",
"description": "string",
"difficulty": 0,
"input_desc": "string",
"output_desc": "string",
"data_range": "string",
"tips": "string",
"max_time": 0,
"max_memory": 0,
"source": "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://localhost:8888/api/v1/problem/' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "string",
"description": "string",
"difficulty": 0,
"input_desc": "string",
"output_desc": "string",
"data_range": "string",
"tips": "string",
"max_time": 0,
"max_memory": 0,
"source": "string"
}'
返回响应
🟢200成功
application/json
Body
status_code
integer
必需
status_msg
string
必需
示例
{
"status_code": 0,
"status_msg": "string"
}
修改于 2023-09-11 13:46:30