docs: update swagger
This commit is contained in:
61
docs/docs.go
61
docs/docs.go
@@ -324,7 +324,7 @@ const docTemplate = `{
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "Authentication successful",
|
"description": "Authentication successful",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/handlers.AuthTokensResponse"
|
"$ref": "#/definitions/handlers.AuthResponse"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
@@ -513,7 +513,7 @@ const docTemplate = `{
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "Token refreshed successfully",
|
"description": "Token refreshed successfully",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/handlers.AuthTokensResponse"
|
"$ref": "#/definitions/handlers.AuthResponse"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
@@ -2064,63 +2064,6 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"handlers.AuthTokensDetail": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"access_token": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
|
||||||
},
|
|
||||||
"refresh_token": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "f94d4ddc7d9b4fcb9d3a2c44c400b780c3e1f1a5c2b7d4e6a0b1c2d3e4f5a6b7"
|
|
||||||
},
|
|
||||||
"user": {
|
|
||||||
"$ref": "#/definitions/handlers.AuthUserSummary"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"handlers.AuthTokensResponse": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"data": {
|
|
||||||
"$ref": "#/definitions/handlers.AuthTokensDetail"
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "Authentication successful"
|
|
||||||
},
|
|
||||||
"success": {
|
|
||||||
"type": "boolean",
|
|
||||||
"example": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"handlers.AuthUserSummary": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"email": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "jane@example.com"
|
|
||||||
},
|
|
||||||
"email_verified": {
|
|
||||||
"type": "boolean",
|
|
||||||
"example": true
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"type": "integer",
|
|
||||||
"example": 42
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"type": "boolean",
|
|
||||||
"example": false
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "janedoe"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"handlers.CommonResponse": {
|
"handlers.CommonResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@@ -321,7 +321,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "Authentication successful",
|
"description": "Authentication successful",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/handlers.AuthTokensResponse"
|
"$ref": "#/definitions/handlers.AuthResponse"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
@@ -510,7 +510,7 @@
|
|||||||
"200": {
|
"200": {
|
||||||
"description": "Token refreshed successfully",
|
"description": "Token refreshed successfully",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/handlers.AuthTokensResponse"
|
"$ref": "#/definitions/handlers.AuthResponse"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
@@ -2061,63 +2061,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"handlers.AuthTokensDetail": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"access_token": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
|
||||||
},
|
|
||||||
"refresh_token": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "f94d4ddc7d9b4fcb9d3a2c44c400b780c3e1f1a5c2b7d4e6a0b1c2d3e4f5a6b7"
|
|
||||||
},
|
|
||||||
"user": {
|
|
||||||
"$ref": "#/definitions/handlers.AuthUserSummary"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"handlers.AuthTokensResponse": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"data": {
|
|
||||||
"$ref": "#/definitions/handlers.AuthTokensDetail"
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "Authentication successful"
|
|
||||||
},
|
|
||||||
"success": {
|
|
||||||
"type": "boolean",
|
|
||||||
"example": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"handlers.AuthUserSummary": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"email": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "jane@example.com"
|
|
||||||
},
|
|
||||||
"email_verified": {
|
|
||||||
"type": "boolean",
|
|
||||||
"example": true
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"type": "integer",
|
|
||||||
"example": 42
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"type": "boolean",
|
|
||||||
"example": false
|
|
||||||
},
|
|
||||||
"username": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "janedoe"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"handlers.CommonResponse": {
|
"handlers.CommonResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@@ -171,46 +171,6 @@ definitions:
|
|||||||
success:
|
success:
|
||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
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:
|
handlers.CommonResponse:
|
||||||
properties:
|
properties:
|
||||||
data: {}
|
data: {}
|
||||||
@@ -459,7 +419,7 @@ paths:
|
|||||||
"200":
|
"200":
|
||||||
description: Authentication successful
|
description: Authentication successful
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/handlers.AuthTokensResponse'
|
$ref: '#/definitions/handlers.AuthResponse'
|
||||||
"400":
|
"400":
|
||||||
description: Invalid request data or validation failed
|
description: Invalid request data or validation failed
|
||||||
schema:
|
schema:
|
||||||
@@ -580,7 +540,7 @@ paths:
|
|||||||
"200":
|
"200":
|
||||||
description: Token refreshed successfully
|
description: Token refreshed successfully
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/handlers.AuthTokensResponse'
|
$ref: '#/definitions/handlers.AuthResponse'
|
||||||
"400":
|
"400":
|
||||||
description: Invalid request body or missing refresh token
|
description: Invalid request body or missing refresh token
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
Reference in New Issue
Block a user