管理员账号注册
POST
https://partyqa.rrrexyz.icu/api/admin/register
用户模块
最后修改时间:2025-03-30 02:53:22
请求参数
Body 参数application/json
username
string
Username
示例值:
qqq
password
string
Password
示例值:
qqq
示例
{
"username": "qqq",
"password": "qqq"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://partyqa.rrrexyz.icu/api/admin/register' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "qqq",
"password": "qqq"
}'
返回响应
🟢201成功
application/json
Body
code
integer
必需
status
string
必需
message
string
必需
data
object
必需
id
integer
管理员账号id
username
string
管理员用户名
示例
{
"code": 0,
"status": "string",
"message": "string",
"data": {
"id": 0,
"username": "string"
}
}
🟠422参数错误
🟠400用户名已存在
修改于 2025-03-30 02:53:22