From bb5446ec7f26b46ed2e1455eec5422d4d5008727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 25 Nov 2020 18:49:37 +0100 Subject: [PATCH] add auth/me --- backend.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/backend.yml b/backend.yml index d310c35..7dfef81 100644 --- a/backend.yml +++ b/backend.yml @@ -46,6 +46,26 @@ paths: schema: $ref: '#/components/schemas/ApiResponse' + /api/auth/me: + get: + tags: + - backend + summary: Current user + operationId: currentUser + responses: + 200: + description: successful operation + content: + application/json: + schema: + $ref: '#/components/schemas/UserName' + 401: + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ApiResponse' + /api/lists: get: tags: @@ -167,6 +187,13 @@ components: type: string password: type: string + UserName: + required: + - name + type: object + properties: + name: + type: string ApiResponse: required: - message