比赛列表
开发中
GET
/contest
请求参数
Query 参数
page
string
可选
示例值:
1
count
string
可选
示例值:
20
Body 参数application/json
object {0}
示例
{}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8888/api/v1/contest?page=1&count=20' \
--header 'Content-Type: application/json' \
--data-raw '{}'
返回响应
🟢200成功
application/json
Body
status_code
integer
必需
status_msg
string
必需
contest_list
array [object {7}]
可选
id
integer
必需
title
string
必需
description
string
必需
start_time
string
必需
end_time
string
必需
is_register
boolean
必需
problem_list
null
必需
示例
{
"status_code": 0,
"status_msg": "string",
"contest_list": [
{
"id": 0,
"title": "string",
"description": "string",
"start_time": "string",
"end_time": "string",
"is_register": true,
"problem_list": null
}
]
}
修改于 2023-09-23 07:34:33