Added missing endpoint for updating user information

Signed-off-By: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2020-05-31 02:22:00 +02:00 committed by David Mehren
parent b2b5a1ba51
commit 670a5e8233
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -89,6 +89,21 @@ paths:
'401':
description: the user is not logged in
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:
tags:
- user
@ -593,6 +608,12 @@ components:
properties:
token:
type: string
UserUpdate:
type: object
properties:
name:
type: string
description: The new display name of the user
Config:
type: object
properties: