...
|
...
|
@@ -15,6 +15,234 @@ |
|
|
"application/json"
|
|
|
],
|
|
|
"paths": {
|
|
|
"v1/api/app-page/get-share-detail/{key}": {
|
|
|
"get": {
|
|
|
"summary": "开放接口-获取应用页详情通过KEY",
|
|
|
"operationId": "getAppPageShareDetail",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/GetAppPageShareDetailResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "key",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"page"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/app-page": {
|
|
|
"post": {
|
|
|
"summary": "保存应用页",
|
|
|
"operationId": "saveAppPage",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageSaveResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageSaveRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"page"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/app-page/create-share": {
|
|
|
"post": {
|
|
|
"summary": "创建应用页分享",
|
|
|
"operationId": "createAppPageShareUrl",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageCreateShareResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageCreateShareRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"page"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/app-page/saveas": {
|
|
|
"post": {
|
|
|
"summary": "应用页另存为",
|
|
|
"operationId": "saveAsAppPage",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageSaveAsResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageSaveAsRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"page"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/app-page/search": {
|
|
|
"post": {
|
|
|
"summary": "搜索",
|
|
|
"operationId": "searchAppPage",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageSearchResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageSearchRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"page"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/app-page/{id}": {
|
|
|
"get": {
|
|
|
"summary": "获取应用页详情",
|
|
|
"operationId": "getAppPage",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageGetResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"page"
|
|
|
]
|
|
|
},
|
|
|
"delete": {
|
|
|
"summary": "删除应用页",
|
|
|
"operationId": "deleteAppPage",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageDeleteResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageDeleteRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"page"
|
|
|
]
|
|
|
},
|
|
|
"put": {
|
|
|
"summary": "更新应用页",
|
|
|
"operationId": "updateAppPage",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageUpdateResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "id",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
},
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/AppPageUpdateRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"page"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/chart": {
|
|
|
"post": {
|
|
|
"summary": "保存图表",
|
...
|
...
|
@@ -155,6 +383,34 @@ |
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/chart/saveas": {
|
|
|
"post": {
|
|
|
"summary": "图表另存为",
|
|
|
"operationId": "saveAsChart",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ChartSaveAsResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ChartSaveAsRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"chart"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/chart/search": {
|
|
|
"post": {
|
|
|
"summary": "搜索图表",
|
...
|
...
|
@@ -391,6 +647,269 @@ |
|
|
}
|
|
|
},
|
|
|
"definitions": {
|
|
|
"AppPageChartItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"chartId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 图表ID"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 图表名称"
|
|
|
},
|
|
|
"cover": {
|
|
|
"type": "string",
|
|
|
"description": " 图表封面"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageChartItem",
|
|
|
"required": [
|
|
|
"chartId",
|
|
|
"name",
|
|
|
"cover"
|
|
|
]
|
|
|
},
|
|
|
"AppPageCreateShareRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 页面ID"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageCreateShareRequest",
|
|
|
"required": [
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"AppPageCreateShareResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"key": {
|
|
|
"type": "string",
|
|
|
"description": " 分享,预览时绑定映射到Id"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageCreateShareResponse"
|
|
|
},
|
|
|
"AppPageDeleteRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 页面ID"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageDeleteRequest",
|
|
|
"required": [
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"AppPageDeleteResponse": {
|
|
|
"type": "object",
|
|
|
"title": "AppPageDeleteResponse"
|
|
|
},
|
|
|
"AppPageGetRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageGetRequest",
|
|
|
"required": [
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"AppPageGetResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"page": {
|
|
|
"$ref": "#/definitions/AppPageItem"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageGetResponse",
|
|
|
"required": [
|
|
|
"page"
|
|
|
]
|
|
|
},
|
|
|
"AppPageItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 唯一标识"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"charts": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/AppPageChartItem"
|
|
|
},
|
|
|
"description": " 图表"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageItem"
|
|
|
},
|
|
|
"AppPageSaveAsRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 页面ID"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageSaveAsRequest",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"name"
|
|
|
]
|
|
|
},
|
|
|
"AppPageSaveAsResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"charts": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": " 图表"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageSaveAsResponse",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"name",
|
|
|
"charts"
|
|
|
]
|
|
|
},
|
|
|
"AppPageSaveRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"charts": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": " 图表"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageSaveRequest",
|
|
|
"required": [
|
|
|
"name",
|
|
|
"charts"
|
|
|
]
|
|
|
},
|
|
|
"AppPageSaveResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageSaveResponse",
|
|
|
"required": [
|
|
|
"id"
|
|
|
]
|
|
|
},
|
|
|
"AppPageSearchRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
},
|
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageSearchRequest",
|
|
|
"required": [
|
|
|
"page",
|
|
|
"size"
|
|
|
]
|
|
|
},
|
|
|
"AppPageSearchResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/AppPageItem"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageSearchResponse",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"AppPageUpdateRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"charts": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"description": " 图表"
|
|
|
}
|
|
|
},
|
|
|
"title": "AppPageUpdateRequest",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"name",
|
|
|
"charts"
|
|
|
]
|
|
|
},
|
|
|
"AppPageUpdateResponse": {
|
|
|
"type": "object",
|
|
|
"title": "AppPageUpdateResponse"
|
|
|
},
|
|
|
"ChartComponentItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
...
|
...
|
@@ -541,6 +1060,10 @@ |
|
|
"cover": {
|
|
|
"type": "string",
|
|
|
"description": " 封面"
|
|
|
},
|
|
|
"other": {
|
|
|
"$ref": "#/definitions/Other",
|
|
|
"description": " 其他额外配置"
|
|
|
}
|
|
|
},
|
|
|
"title": "ChartProperty"
|
...
|
...
|
@@ -567,6 +1090,37 @@ |
|
|
"type": "object",
|
|
|
"title": "ChartRenameResponse"
|
|
|
},
|
|
|
"ChartSaveAsRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"chartId": {
|
|
|
"type": "integer",
|
|
|
"format": "int64",
|
|
|
"description": " 图表Id"
|
|
|
},
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
}
|
|
|
},
|
|
|
"title": "ChartSaveAsRequest",
|
|
|
"required": [
|
|
|
"chartId",
|
|
|
"name"
|
|
|
]
|
|
|
},
|
|
|
"ChartSaveAsResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"chart": {
|
|
|
"$ref": "#/definitions/ChartItem"
|
|
|
}
|
|
|
},
|
|
|
"title": "ChartSaveAsResponse",
|
|
|
"required": [
|
|
|
"chart"
|
|
|
]
|
|
|
},
|
|
|
"ChartSaveRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
...
|
...
|
@@ -776,6 +1330,30 @@ |
|
|
"toValue"
|
|
|
]
|
|
|
},
|
|
|
"GetAppPageShareDetailRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"key": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"title": "GetAppPageShareDetailRequest",
|
|
|
"required": [
|
|
|
"key"
|
|
|
]
|
|
|
},
|
|
|
"GetAppPageShareDetailResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"page": {
|
|
|
"$ref": "#/definitions/AppPageItem"
|
|
|
}
|
|
|
},
|
|
|
"title": "GetAppPageShareDetailResponse",
|
|
|
"required": [
|
|
|
"page"
|
|
|
]
|
|
|
},
|
|
|
"GetTableDetailRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
...
|
...
|
@@ -814,6 +1392,63 @@ |
|
|
"type": "object",
|
|
|
"title": "LoadChartDataResponse"
|
|
|
},
|
|
|
"Other": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"quarter": {
|
|
|
"$ref": "#/definitions/Quarter",
|
|
|
"description": " 四分图"
|
|
|
}
|
|
|
},
|
|
|
"title": "Other",
|
|
|
"required": [
|
|
|
"quarter"
|
|
|
]
|
|
|
},
|
|
|
"Quarter": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"xAxisLabel": {
|
|
|
"type": "string",
|
|
|
"description": " x轴标签名"
|
|
|
},
|
|
|
"xAxisLabelList": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"description": " 标签名"
|
|
|
},
|
|
|
"yAxisLabel": {
|
|
|
"type": "string",
|
|
|
"description": " x轴标签名"
|
|
|
},
|
|
|
"yAxisLabelList": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"description": " 标签名"
|
|
|
},
|
|
|
"area": {
|
|
|
"type": "string",
|
|
|
"description": " 图形面积"
|
|
|
},
|
|
|
"seriesList": {
|
|
|
"type": "string",
|
|
|
"description": " 图形系列"
|
|
|
}
|
|
|
},
|
|
|
"title": "Quarter",
|
|
|
"required": [
|
|
|
"xAxisLabel",
|
|
|
"xAxisLabelList",
|
|
|
"yAxisLabel",
|
|
|
"yAxisLabelList",
|
|
|
"area",
|
|
|
"seriesList"
|
|
|
]
|
|
|
},
|
|
|
"SearchTableByModuleRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
...
|
...
|
@@ -945,6 +1580,18 @@ |
|
|
"$ref": "#/definitions/Expression"
|
|
|
},
|
|
|
"description": " 条件匹配表达式(总体指标)"
|
|
|
},
|
|
|
"targetText": {
|
|
|
"type": "string",
|
|
|
"description": " 指标名文本"
|
|
|
},
|
|
|
"targetNum": {
|
|
|
"type": "string",
|
|
|
"description": " 指标数值"
|
|
|
},
|
|
|
"targetUnit": {
|
|
|
"type": "string",
|
|
|
"description": " 指标单位"
|
|
|
}
|
|
|
},
|
|
|
"title": "Series",
|
...
|
...
|
@@ -953,7 +1600,10 @@ |
|
|
"from",
|
|
|
"dataSourceId",
|
|
|
"customText",
|
|
|
"matchExpressions"
|
|
|
"matchExpressions",
|
|
|
"targetText",
|
|
|
"targetNum",
|
|
|
"targetUnit"
|
|
|
]
|
|
|
},
|
|
|
"TableAbility": {
|
...
|
...
|
@@ -1010,6 +1660,10 @@ |
|
|
"fileUrl": {
|
|
|
"type": "string",
|
|
|
"description": " 组件图片/视频"
|
|
|
},
|
|
|
"align": {
|
|
|
"type": "string",
|
|
|
"description": " 文本对齐方式 left center right"
|
|
|
}
|
|
|
},
|
|
|
"title": "Title",
|
...
|
...
|
|