1 Star 0 Fork 1

tim1103 / luogu-api-docs

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
users.md 4.67 KB
Copy Edit Raw Blame History
undefined authored 2020-07-07 17:51 . Simplify parameters

用户 API

获取用户

请求 GET /user/:uid
参数 { _contentOnly: any; }
响应主体 application/json (DataResponse<UserData>)

根据 UID 或名字搜索用户

请求 GET /fe/api/user/search
参数 { keyword: string; }
响应主体 application/json ({ users: [UserInfo | null]; })

列出关注

请求 GET /fe/api/user/followings
参数 { user: number; page?: number; }
响应主体 application/json ({ users: List<User>; })

列出粉丝

请求 GET /fe/api/user/followers
参数 { user: number; page?: number; }
响应主体 application/json ({ users: List<User>; })

获取设置

请求 GET /user/setting
参数 { _contentOnly: any; }
响应主体 application/json (DataResponse<UserSettingsData>)

更新设置

请求 POST /fe/api/user/updateSetting
请求主体 application/json ({ settings: UserSettings; })
响应主体 application/json ({})

更新签名

请求 POST /fe/api/user/updateSlogan
请求主体 application/json ({ slogan: string; })
响应主体 application/json ({})

更新介绍

请求 POST /fe/api/user/updateIntroduction
请求主体 application/json ({ introduction: string; })
响应主体 application/json ({})

更新封面

请求 POST /fe/api/user/updateHeaderImage
请求主体 application/json ({ imageID: string; })
响应主体 application/json ({})

绑定 RemoteJudge

请求 POST /fe/api/user/bindVjudgeAccount
请求主体 application/json (BindRemoteJudgeAccountRequest)
响应主体 application/json ({})

解除绑定 RemoteJudge

请求 POST /fe/api/user/unbindVjudgeAccount
请求主体 application/json ({ oj: string; })
响应主体 application/json ({})

绑定 OpenID

: 重定向到对应的认证页面。

请求 GET /api/openid/connect/:id

解除绑定 OpenID

请求 POST /fe/api/user/unbindOpenId/:id
响应主体 application/json ({})
1
https://gitee.com/tim1103/luogu-api-docs.git
git@gitee.com:tim1103/luogu-api-docs.git
tim1103
luogu-api-docs
luogu-api-docs
master

Search