swagger docs update

This commit is contained in:
nquidox 2025-09-14 16:23:01 +03:00
parent 8f4e999e43
commit a66a86a0b0
3 changed files with 3 additions and 27 deletions

View file

@ -222,11 +222,6 @@ const docTemplate = `{
}, },
"/user/auth/logout": { "/user/auth/logout": {
"post": { "post": {
"security": [
{
"BearerAuth": []
}
],
"description": "Логаут. Для логаута надо передать refresh token, он будет инвалидирован.", "description": "Логаут. Для логаута надо передать refresh token, он будет инвалидирован.",
"tags": [ "tags": [
"Users - auth" "Users - auth"
@ -253,12 +248,7 @@ const docTemplate = `{
}, },
"/user/auth/refresh": { "/user/auth/refresh": {
"post": { "post": {
"security": [ "description": "Принимает рефреш токен в http only куки",
{
"BearerAuth": []
}
],
"description": "Принимает рефреш токен в заголовке Authorization",
"tags": [ "tags": [
"Users - auth" "Users - auth"
], ],

View file

@ -214,11 +214,6 @@
}, },
"/user/auth/logout": { "/user/auth/logout": {
"post": { "post": {
"security": [
{
"BearerAuth": []
}
],
"description": "Логаут. Для логаута надо передать refresh token, он будет инвалидирован.", "description": "Логаут. Для логаута надо передать refresh token, он будет инвалидирован.",
"tags": [ "tags": [
"Users - auth" "Users - auth"
@ -245,12 +240,7 @@
}, },
"/user/auth/refresh": { "/user/auth/refresh": {
"post": { "post": {
"security": [ "description": "Принимает рефреш токен в http only куки",
{
"BearerAuth": []
}
],
"description": "Принимает рефреш токен в заголовке Authorization",
"tags": [ "tags": [
"Users - auth" "Users - auth"
], ],

View file

@ -205,14 +205,12 @@ paths:
description: Internal Server Error description: Internal Server Error
schema: schema:
$ref: '#/definitions/responses.ErrorResponse500' $ref: '#/definitions/responses.ErrorResponse500'
security:
- BearerAuth: []
summary: Логаут summary: Логаут
tags: tags:
- Users - auth - Users - auth
/user/auth/refresh: /user/auth/refresh:
post: post:
description: Принимает рефреш токен в заголовке Authorization description: Принимает рефреш токен в http only куки
responses: responses:
"200": "200":
description: OK description: OK
@ -226,8 +224,6 @@ paths:
description: Internal Server Error description: Internal Server Error
schema: schema:
$ref: '#/definitions/responses.ErrorResponse500' $ref: '#/definitions/responses.ErrorResponse500'
security:
- BearerAuth: []
summary: Обновление аксесс токена по рефреш токену. summary: Обновление аксесс токена по рефреш токену.
tags: tags:
- Users - auth - Users - auth