add auth/me
This commit is contained in:
parent
3b6a698744
commit
bb5446ec7f
27
backend.yml
27
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
|
||||
|
Loading…
Reference in New Issue
Block a user