From a66a86a0b0de352241a92fe12a0b1037984bfbdd Mon Sep 17 00:00:00 2001 From: nquidox Date: Sun, 14 Sep 2025 16:23:01 +0300 Subject: [PATCH] swagger docs update --- docs/docs.go | 12 +----------- docs/swagger.json | 12 +----------- docs/swagger.yaml | 6 +----- 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index c9efd1c..47e55ea 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -222,11 +222,6 @@ const docTemplate = `{ }, "/user/auth/logout": { "post": { - "security": [ - { - "BearerAuth": [] - } - ], "description": "Логаут. Для логаута надо передать refresh token, он будет инвалидирован.", "tags": [ "Users - auth" @@ -253,12 +248,7 @@ const docTemplate = `{ }, "/user/auth/refresh": { "post": { - "security": [ - { - "BearerAuth": [] - } - ], - "description": "Принимает рефреш токен в заголовке Authorization", + "description": "Принимает рефреш токен в http only куки", "tags": [ "Users - auth" ], diff --git a/docs/swagger.json b/docs/swagger.json index f8b76d8..0da1ee1 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -214,11 +214,6 @@ }, "/user/auth/logout": { "post": { - "security": [ - { - "BearerAuth": [] - } - ], "description": "Логаут. Для логаута надо передать refresh token, он будет инвалидирован.", "tags": [ "Users - auth" @@ -245,12 +240,7 @@ }, "/user/auth/refresh": { "post": { - "security": [ - { - "BearerAuth": [] - } - ], - "description": "Принимает рефреш токен в заголовке Authorization", + "description": "Принимает рефреш токен в http only куки", "tags": [ "Users - auth" ], diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 4186456..8cbb0c7 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -205,14 +205,12 @@ paths: description: Internal Server Error schema: $ref: '#/definitions/responses.ErrorResponse500' - security: - - BearerAuth: [] summary: Логаут tags: - Users - auth /user/auth/refresh: post: - description: Принимает рефреш токен в заголовке Authorization + description: Принимает рефреш токен в http only куки responses: "200": description: OK @@ -226,8 +224,6 @@ paths: description: Internal Server Error schema: $ref: '#/definitions/responses.ErrorResponse500' - security: - - BearerAuth: [] summary: Обновление аксесс токена по рефреш токену. tags: - Users - auth