GET /auth/register/check-username
在用户注册前校验用户名是否已被占用,防止批量注册和冲突。支持GET和POST两种请求方式。参考:OWASP ASVS V2.2。
身份认证 None application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
username |
query |
string |
No |
|
|
|
用户名(GET方式) |
Request Body
Schema: dto.CheckUsernameRequest
| Field | Type | Required | Example | Constraints | Description |
username |
string |
Yes |
john_doe |
|
Username |
Referenced Schemas
dto.CheckUsernameResponse
检查用户名可用性结果
| Field | Type | Required | Example | Constraints | Description |
available |
boolean |
No |
True |
|
Is available |
username |
string |
No |
john_doe |
|
Username |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|