swagger docs update
This commit is contained in:
parent
8f4e999e43
commit
a66a86a0b0
3 changed files with 3 additions and 27 deletions
12
docs/docs.go
12
docs/docs.go
|
|
@ -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"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue