add auth/me
This commit is contained in:
parent
3b6a698744
commit
bb5446ec7f
27
backend.yml
27
backend.yml
@ -46,6 +46,26 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ApiResponse'
|
$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:
|
/api/lists:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@ -167,6 +187,13 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
password:
|
password:
|
||||||
type: string
|
type: string
|
||||||
|
UserName:
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
ApiResponse:
|
ApiResponse:
|
||||||
required:
|
required:
|
||||||
- message
|
- message
|
||||||
|
Loading…
Reference in New Issue
Block a user