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