swagger docs update

This commit is contained in:
nquidox 2025-09-14 19:34:06 +03:00
parent c59fbc0864
commit 0c518cab50
4 changed files with 147 additions and 13 deletions

View file

@ -18,6 +18,13 @@ definitions:
example: Internal Server Error
type: string
type: object
shared.CurrentSession:
properties:
expires:
type: string
uuid:
type: string
type: object
user.Info:
properties:
created_at:
@ -163,6 +170,31 @@ paths:
summary: Обновить информацию о пользователе
tags:
- Users
/user/auth/current-session:
get:
description: Возвращает информацию о текущей сессии пользователя
responses:
"200":
description: OK
schema:
$ref: '#/definitions/shared.CurrentSession'
"400":
description: Bad Request
schema:
$ref: '#/definitions/responses.ErrorResponse400'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/responses.ErrorResponse401'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/responses.ErrorResponse500'
security:
- BearerAuth: []
summary: Возвращает информацию о текущей сессии пользователя
tags:
- Users
/user/auth/login:
post:
consumes: