docs: update swagger

This commit is contained in:
2026-01-10 22:58:58 +01:00
parent 66b4b0e173
commit 5a530b7609
3 changed files with 6 additions and 160 deletions

View File

@@ -171,46 +171,6 @@ definitions:
success:
type: boolean
type: object
handlers.AuthTokensDetail:
properties:
access_token:
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
type: string
refresh_token:
example: f94d4ddc7d9b4fcb9d3a2c44c400b780c3e1f1a5c2b7d4e6a0b1c2d3e4f5a6b7
type: string
user:
$ref: '#/definitions/handlers.AuthUserSummary'
type: object
handlers.AuthTokensResponse:
properties:
data:
$ref: '#/definitions/handlers.AuthTokensDetail'
message:
example: Authentication successful
type: string
success:
example: true
type: boolean
type: object
handlers.AuthUserSummary:
properties:
email:
example: jane@example.com
type: string
email_verified:
example: true
type: boolean
id:
example: 42
type: integer
locked:
example: false
type: boolean
username:
example: janedoe
type: string
type: object
handlers.CommonResponse:
properties:
data: {}
@@ -459,7 +419,7 @@ paths:
"200":
description: Authentication successful
schema:
$ref: '#/definitions/handlers.AuthTokensResponse'
$ref: '#/definitions/handlers.AuthResponse'
"400":
description: Invalid request data or validation failed
schema:
@@ -580,7 +540,7 @@ paths:
"200":
description: Token refreshed successfully
schema:
$ref: '#/definitions/handlers.AuthTokensResponse'
$ref: '#/definitions/handlers.AuthResponse'
"400":
description: Invalid request body or missing refresh token
schema: