[feature/backend] update put /users/me endpoint, allow setting username and display name
This commit is contained in:
parent
1526c27b49
commit
79912925db
4 changed files with 46 additions and 3 deletions
|
@ -216,14 +216,23 @@ user_me:
|
|||
schema:
|
||||
type: object
|
||||
properties:
|
||||
username:
|
||||
type: string
|
||||
minLength: 3
|
||||
maxLength: 32
|
||||
display_name:
|
||||
type: string
|
||||
maxLength: 64
|
||||
email:
|
||||
type: string
|
||||
format: email
|
||||
current_password:
|
||||
type: string
|
||||
description: 当修改密码时必填
|
||||
new_password:
|
||||
type: string
|
||||
minLength: 8
|
||||
description: 新密码,如果要修改密码则必填
|
||||
responses:
|
||||
'200':
|
||||
description: 用户信息更新成功
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue