swagger docs update
This commit is contained in:
parent
c59fbc0864
commit
0c518cab50
4 changed files with 147 additions and 13 deletions
|
|
@ -169,6 +169,46 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/user/auth/current-session": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Возвращает информацию о текущей сессии пользователя",
|
||||
"tags": [
|
||||
"Users"
|
||||
],
|
||||
"summary": "Возвращает информацию о текущей сессии пользователя",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/auth/login": {
|
||||
"post": {
|
||||
"description": "Логин",
|
||||
|
|
@ -296,6 +336,17 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"shared.CurrentSession": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expires": {
|
||||
"type": "string"
|
||||
},
|
||||
"uuid": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"user.Info": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue