From ab251b429e3ab798f3c744aa75454724a0a0cbaa Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Sun, 31 May 2020 02:22:00 +0200 Subject: [PATCH] Added missing endpoint for updating user information Signed-off-By: Erik Michelson --- docs/dev/openapi.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/dev/openapi.yml b/docs/dev/openapi.yml index 173382eee..ca7a534bd 100644 --- a/docs/dev/openapi.yml +++ b/docs/dev/openapi.yml @@ -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: