Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 45 additions & 42 deletions agent/cmd/server/docs/x-log.json
Original file line number Diff line number Diff line change
Expand Up @@ -1395,13 +1395,14 @@
"/core/enterprise/skills-hub/import": {
"bodyKeys": [
"type",
"version",
"repoURL",
"packageURL"
],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "导入 Skills Hub 技能 [type]",
"formatEN": "import Skills Hub skill [type]"
"formatZH": "导入 Skills Hub 技能版本 [version]",
"formatEN": "import Skills Hub skill version [version]"
},
"/core/enterprise/skills-hub/status": {
"bodyKeys": [
Expand Down Expand Up @@ -1505,11 +1506,13 @@
"formatEN": "update Skills Hub install target [name]"
},
"/core/enterprise/skills-hub/upload": {
"bodyKeys": [],
"bodyKeys": [
"version"
],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "上传 Skills Hub 技能包",
"formatEN": "upload Skills Hub package"
"formatZH": "上传 Skills Hub 技能包版本 [version]",
"formatEN": "upload Skills Hub package version [version]"
},
"/core/enterprise/users": {
"bodyKeys": [
Expand All @@ -1520,6 +1523,25 @@
"formatZH": "添加用户 [name]",
"formatEN": "add user [name]"
},
"/core/enterprise/users/api/update": {
"bodyKeys": [
"id",
"ipWhiteList"
],
"paramKeys": [],
"beforeFunctions": [
{
"input_column": "id",
"input_value": "id",
"isList": false,
"db": "users",
"output_column": "name",
"output_value": "name"
}
],
"formatZH": "更新用户 [name] API 接口配置 =\u003e IP 白名单: [ipWhiteList]",
"formatEN": "update user [name] api config =\u003e IP White List: [ipWhiteList]"
},
"/core/enterprise/users/del": {
"bodyKeys": [
"ids"
Expand Down Expand Up @@ -1890,6 +1912,20 @@
"formatZH": "交换文件 [sourcePath] 到 [targetPath]",
"formatEN": "exchange file [sourcePath] to [targetPath]"
},
"/core/xpack/exchange/image": {
"bodyKeys": [],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "同步节点镜像",
"formatEN": "sync images"
},
"/core/xpack/exchange/ssl": {
"bodyKeys": [],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "同步节点 SSL 证书",
"formatEN": "sync SSL certificates"
},
"/core/xpack/nodes": {
"bodyKeys": [
"name"
Expand Down Expand Up @@ -2227,15 +2263,11 @@
"formatEN": "update xpack setting [key]"
},
"/core/xpack/sync/app": {
"bodyKeys": [
"sourceNode",
"targetNodes",
"appInstallID"
],
"bodyKeys": [],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "同步应用 [appInstallID] 到节点 [targetNodes]",
"formatEN": "sync app [appInstallID] to nodes [targetNodes]"
"formatZH": "同步节点应用",
"formatEN": "sync app"
},
"/core/xpack/sync/ssl": {
"bodyKeys": [
Expand Down Expand Up @@ -2385,42 +2417,13 @@
"formatZH": "更新应用镜像前缀 [imagePrefix]",
"formatEN": "update app image prefix [imagePrefix]"
},
"/custom/app/install": {
"bodyKeys": [
"name",
"appKey"
],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "从节点安装应用 [name]",
"formatEN": "install app [name] from node"
},
"/custom/app/install/check": {
"bodyKeys": [
"name",
"appKey"
],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "检查应用安装 [name]",
"formatEN": "check app install [name]"
},
"/custom/app/sync": {
"bodyKeys": [],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "同步自定义应用商店",
"formatEN": "sync custom app store"
},
"/custom/app/sync/backup": {
"bodyKeys": [
"appInstallID"
],
"paramKeys": [],
"beforeFunctions": [],
"formatZH": "创建应用同步备份 [appInstallID]",
"formatEN": "create app sync backup [appInstallID]"
},
"/dashboard/app/launcher/show": {
"bodyKeys": [
"key",
Expand Down Expand Up @@ -5152,4 +5155,4 @@
"formatZH": "从主节点同步设置",
"formatEN": "sync settings from master"
}
}
}
42 changes: 40 additions & 2 deletions core/cmd/server/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const docTemplate = `{
"description": "OK",
"schema": {
"additionalProperties": {
"format": "int64",
"type": "integer"
},
"type": "object"
Expand Down Expand Up @@ -28517,6 +28518,12 @@ const docTemplate = `{
"cpuQuota": {
"type": "number"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"dockerCompose": {
"type": "string"
},
Expand Down Expand Up @@ -28890,6 +28897,12 @@ const docTemplate = `{
"cpuQuota": {
"type": "number"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"dockerCompose": {
"type": "string"
},
Expand Down Expand Up @@ -29464,6 +29477,12 @@ const docTemplate = `{
"createdAt": {
"type": "string"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"id": {
"type": "integer"
},
Expand Down Expand Up @@ -29565,6 +29584,12 @@ const docTemplate = `{
"browserEnabled": {
"type": "boolean"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"npmRegistry": {
"type": "string"
},
Expand All @@ -29582,6 +29607,12 @@ const docTemplate = `{
"browserEnabled": {
"type": "boolean"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"npmRegistry": {
"type": "string"
},
Expand Down Expand Up @@ -34635,6 +34666,9 @@ const docTemplate = `{
"es-es": {
"type": "string"
},
"fa": {
"type": "string"
},
"ja": {
"type": "string"
},
Expand Down Expand Up @@ -34692,7 +34726,8 @@ const docTemplate = `{
"ms",
"pt-BR",
"tr",
"es-ES"
"es-ES",
"fa"
],
"type": "string"
},
Expand Down Expand Up @@ -42980,6 +43015,9 @@ const docTemplate = `{
"pushNode": {
"type": "boolean"
},
"sync": {
"type": "boolean"
},
"taskID": {
"type": "string"
}
Expand Down Expand Up @@ -45456,4 +45494,4 @@ var SwaggerInfo = &swag.Spec{

func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}
}
40 changes: 39 additions & 1 deletion core/cmd/server/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"description": "OK",
"schema": {
"additionalProperties": {
"format": "int64",
"type": "integer"
},
"type": "object"
Expand Down Expand Up @@ -28513,6 +28514,12 @@
"cpuQuota": {
"type": "number"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"dockerCompose": {
"type": "string"
},
Expand Down Expand Up @@ -28886,6 +28893,12 @@
"cpuQuota": {
"type": "number"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"dockerCompose": {
"type": "string"
},
Expand Down Expand Up @@ -29460,6 +29473,12 @@
"createdAt": {
"type": "string"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"id": {
"type": "integer"
},
Expand Down Expand Up @@ -29561,6 +29580,12 @@
"browserEnabled": {
"type": "boolean"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"npmRegistry": {
"type": "string"
},
Expand All @@ -29578,6 +29603,12 @@
"browserEnabled": {
"type": "boolean"
},
"dashboardPassword": {
"type": "string"
},
"dashboardUsername": {
"type": "string"
},
"npmRegistry": {
"type": "string"
},
Expand Down Expand Up @@ -34631,6 +34662,9 @@
"es-es": {
"type": "string"
},
"fa": {
"type": "string"
},
"ja": {
"type": "string"
},
Expand Down Expand Up @@ -34688,7 +34722,8 @@
"ms",
"pt-BR",
"tr",
"es-ES"
"es-ES",
"fa"
],
"type": "string"
},
Expand Down Expand Up @@ -42976,6 +43011,9 @@
"pushNode": {
"type": "boolean"
},
"sync": {
"type": "boolean"
},
"taskID": {
"type": "string"
}
Expand Down
Loading
Loading