add me api

This commit is contained in:
Torma Kristóf 2020-12-06 02:43:36 +01:00
parent 4ad9287ba5
commit e239c787ed
1 changed files with 21 additions and 0 deletions

View File

@ -131,6 +131,27 @@ paths:
schema:
$ref: '#/components/schemas/ApiResponse'
/api/auth/me:
get:
tags:
- backend
security:
- bearerAuth: []
summary: Get current user data
operationId: getMe
responses:
200:
description: Array of users
content:
application/json:
schema:
$ref: '#/components/schemas/UserMetadataResponse'
404:
description: No object matching filter
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
/api/auth/signup:
post: