个人主页
开发中
GET
http://localhost:8888/user/page
请求参数
Header 参数
Authorization
string
可选
Body 参数application/json
id
integer
必需
示例
{
"id": 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/user/page' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
info
string
必需
data
object
必需
id
integer
必需
username
string
必需
bio
string
必需
gender
string
必需
documents
array [object {5}]
必需
created_at
string
必需
updated_at
string
必需
示例
{
"code": 20000,
"info": "OK",
"data": {
"id": 1,
"username": "rinai",
"bio": "这里填写个人简介",
"gender": "魔法师",
"documents": [
{
"id": 1,
"title": "codeforce",
"is_private": true,
"create_time": "2025-01-23T14:15:51.82Z",
"update_time": "2025-01-23T14:15:51.82Z"
},
{
"id": 2,
"title": "luogu",
"is_private": true,
"create_time": "2025-01-23T14:15:59.51Z",
"update_time": "2025-01-23T14:15:59.51Z"
},
{
"id": 3,
"title": "hashcode",
"is_private": true,
"create_time": "2025-01-23T14:16:06.158Z",
"update_time": "2025-01-23T14:16:06.158Z"
}
],
"created_at": "2025-01-23T14:12:50.233Z",
"updated_at": "2025-01-23T14:14:12.338Z"
}
}
🟠401没有权限
修改于 2025-02-07 13:30:18