- 用户模块
- 题目模块
- 提交模块
- 竞赛模块
- 笔记模块
- ChatGPT聊天POST
用户注册
开发中
POST
/user/register/
请求参数
Body 参数application/json
email
string
邮箱
password
string
密码
captcha
string
验证码
示例
{
"email": "string",
"password": "string",
"captcha": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8888/api/v1/user/register/' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "string",
"password": "string",
"captcha": "string"
}'
返回响应
🟢200成功
application/json
Body
status_code
integer
状态码
status_msg
string
状态描述
token
string
用户鉴权token
user_id
integer
用户id
示例
{
"status_code": 0,
"status_msg": "string",
"token": "string",
"user_id": 0
}
修改于 2023-09-11 13:05:14