- SCUPIOJ
32 修改代码答案
测试中
PUT
127.0.0.1:8000/home/<str:coursename>/<str:assignmentname>/programming/<int:problem_id>/
OJ
老师管理员修改str:coursename/str:assignmentname/int:problem_id/中代码答案,可以批量修改,返回修改后的结果
请求参数
Body 参数application/json
array of:
id
integer
必需
command_line_arguments
string | null
必需
standard_input
string | null
必需
standard_output
string
必需
time_limit
integer
必 需
space_limit
integer
必需
score
integer
必需
示例
[
{
"id": 6,
"command_line_arguments": "arg4 arg5",
"standard_input": "input2",
"standard_output": "output3",
"time_limit": 10000,
"space_limit": 10000,
"score": 150
},
{
"id": 5,
"command_line_arguments": "arg1 arg2 arg3",
"standard_input": "input1",
"standard_output": "output1",
"time_limit": 10000,
"space_limit": 10000,
"score": 100
},
{
"id": 4,
"command_line_arguments": null,
"standard_input": null,
"standard_output": "output2",
"time_limit": 10000,
"space_limit": 10000,
"score": 200
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '127.0.0.1:8000/home/<str:coursename>/<str:assignmentname>/programming/<int:problem_id>/' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"id": 6,
"command_line_arguments": "arg4 arg5",
"standard_input": "input2",
"standard_output": "output3",
"time_limit": 10000,
"space_limit": 10000,
"score": 150
},
{
"id": 5,
"command_line_arguments": "arg1 arg2 arg3",
"standard_input": "input1",
"standard_output": "output1",
"time_limit": 10000,
"space_limit": 10000,
"score": 100
},
{
"id": 4,
"command_line_arguments": null,
"standard_input": null,
"standard_output": "output2",
"time_limit": 10000,
"space_limit": 10000,
"score": 200
}
]'
返回响应
🟢200成功
application/json
Body
array of:
id
integer
必需
command_line_arguments
string | null
必需
standard_input
string | null
必需
standard_output
string
必需
time_limit
integer
必需
space_limit
integer