swagger docs update
This commit is contained in:
parent
06d952c145
commit
f07131264f
3 changed files with 53 additions and 40 deletions
|
|
@ -96,11 +96,6 @@
|
|||
}
|
||||
},
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Регистрация нового пользователя",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
|
|
@ -174,13 +169,8 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/user/login": {
|
||||
"/user/auth/login": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Логин",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
|
|
@ -202,7 +192,10 @@
|
|||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/user.LoginResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
|
|
@ -219,14 +212,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/user/logout": {
|
||||
"/user/auth/logout": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Логаут. Uuid юзера будет извлечен из токена.",
|
||||
"description": "Логаут. Для логаута надо передать refresh token, он будет инвалидирован.",
|
||||
"tags": [
|
||||
"Users - auth"
|
||||
],
|
||||
|
|
@ -250,7 +243,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/user/refresh": {
|
||||
"/user/auth/refresh": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
|
|
@ -264,7 +257,10 @@
|
|||
"summary": "Обновление аксесс токена по рефреш токену.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/user.LoginResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
|
|
@ -335,6 +331,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"user.LoginResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"access_token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"user.Register": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue