add auth/me

This commit is contained in:
Torma Kristóf 2020-11-25 18:49:37 +01:00
parent 3b6a698744
commit bb5446ec7f
1 changed files with 27 additions and 0 deletions

View File

@ -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