mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 17:01:00 -05:00
Added missing endpoint for updating user information
Signed-off-By: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
37b774223f
commit
ab251b429e
1 changed files with 21 additions and 0 deletions
|
@ -89,6 +89,21 @@ paths:
|
||||||
'401':
|
'401':
|
||||||
description: the user is not logged in
|
description: the user is not logged in
|
||||||
content: {}
|
content: {}
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- user
|
||||||
|
summary: Update information about the currently logged-in user
|
||||||
|
operationId: updateMe
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: The user information was changed successfully
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
description: The new user information
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
"$ref": "#/components/schemas/UserUpdate"
|
||||||
delete:
|
delete:
|
||||||
tags:
|
tags:
|
||||||
- user
|
- user
|
||||||
|
@ -593,6 +608,12 @@ components:
|
||||||
properties:
|
properties:
|
||||||
token:
|
token:
|
||||||
type: string
|
type: string
|
||||||
|
UserUpdate:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: The new display name of the user
|
||||||
Config:
|
Config:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in a new issue