Skip to content

Commit

Permalink
gen swagger: get database driver options api
Browse files Browse the repository at this point in the history
  • Loading branch information
iwanghc committed Dec 26, 2024
1 parent ee5f73d commit 4668157
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 0 deletions.
62 changes: 62 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,29 @@ var doc = `{
}
}
},
"/v1/database_driver_options": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get database driver options",
"tags": [
"instance"
],
"summary": "获取实例的额外属性列表",
"operationId": "getDatabaseDriverOptions",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.GetDatabaseDriverOptionsResV1"
}
}
}
}
},
"/v1/import_rule_template": {
"get": {
"security": [
Expand Down Expand Up @@ -13033,6 +13056,26 @@ var doc = `{
}
}
},
"v1.DatabaseDriverOptionsV1": {
"type": "object",
"properties": {
"db_type": {
"type": "string"
},
"logo": {
"type": "array",
"items": {
"type": "integer"
}
},
"params": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.InstanceAdditionalParamResV1"
}
}
}
},
"v1.DatabaseObject": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -13935,6 +13978,25 @@ var doc = `{
}
}
},
"v1.GetDatabaseDriverOptionsResV1": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"example": 0
},
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.DatabaseDriverOptionsV1"
}
},
"message": {
"type": "string",
"example": "ok"
}
}
},
"v1.GetDepBetweenStageInstanceResV1": {
"type": "object",
"properties": {
Expand Down
62 changes: 62 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,29 @@
}
}
},
"/v1/database_driver_options": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "get database driver options",
"tags": [
"instance"
],
"summary": "获取实例的额外属性列表",
"operationId": "getDatabaseDriverOptions",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.GetDatabaseDriverOptionsResV1"
}
}
}
}
},
"/v1/import_rule_template": {
"get": {
"security": [
Expand Down Expand Up @@ -13017,6 +13040,26 @@
}
}
},
"v1.DatabaseDriverOptionsV1": {
"type": "object",
"properties": {
"db_type": {
"type": "string"
},
"logo": {
"type": "array",
"items": {
"type": "integer"
}
},
"params": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.InstanceAdditionalParamResV1"
}
}
}
},
"v1.DatabaseObject": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -13919,6 +13962,25 @@
}
}
},
"v1.GetDatabaseDriverOptionsResV1": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"example": 0
},
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.DatabaseDriverOptionsV1"
}
},
"message": {
"type": "string",
"example": "ok"
}
}
},
"v1.GetDepBetweenStageInstanceResV1": {
"type": "object",
"properties": {
Expand Down
40 changes: 40 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,19 @@ definitions:
$ref: '#/definitions/v1.ObjectDiffResult'
type: array
type: object
v1.DatabaseDriverOptionsV1:
properties:
db_type:
type: string
logo:
items:
type: integer
type: array
params:
items:
$ref: '#/definitions/v1.InstanceAdditionalParamResV1'
type: array
type: object
v1.DatabaseObject:
properties:
object_name:
Expand Down Expand Up @@ -1792,6 +1805,19 @@ definitions:
$ref: '#/definitions/v1.DatabaseComparisonObject'
type: object
type: object
v1.GetDatabaseDriverOptionsResV1:
properties:
code:
example: 0
type: integer
data:
items:
$ref: '#/definitions/v1.DatabaseDriverOptionsV1'
type: array
message:
example: ok
type: string
type: object
v1.GetDepBetweenStageInstanceResV1:
properties:
code:
Expand Down Expand Up @@ -7031,6 +7057,20 @@ paths:
summary: 获取全局工单统计数据
tags:
- workflow
/v1/database_driver_options:
get:
description: get database driver options
operationId: getDatabaseDriverOptions
responses:
"200":
description: OK
schema:
$ref: '#/definitions/v1.GetDatabaseDriverOptionsResV1'
security:
- ApiKeyAuth: []
summary: 获取实例的额外属性列表
tags:
- instance
/v1/import_rule_template:
get:
description: get rule template file
Expand Down

0 comments on commit 4668157

Please sign in to comment.