APP Config
Download OpenAPI specification:Download
Provides functionality for configuring pages, including CRUD operations and batch data querying.
The request parameters for configuring pages have not been standardized. If there are any requirements in the future, relevant personnel can discuss it.
Query Page Tree List
- The response does not include layout blocks.
- The data structure of the response is not fixed, and the documentation cannot accurately describe the structure of the returned data.
Authorizations:
query Parameters
parentId required | string Parent ID |
type | string If type is "symbol", query the symbol tree list; if not provided or other value, query the page tree list. |
Responses
Response samples
- 200
- 400
{- "id": "App_bac090d688004de9bf927b9ff66bfca7",
- "name": "desktop",
- "description": "",
- "appName": "Desktop",
- "appId": "App_bac090d688004de9bf927b9ff66bfca7",
- "templateName": "App",
- "appSecret": "cd5d7e2ac9f8d94658e0f6495cc043f1",
- "appVersion": "1.0.0",
- "hasChildren": true,
- "allowEdit": 1,
- "userAuthUrl": "",
- "roleAuthUrl": "",
- "coverUrl": "/api/app/manager/images/AppIconPreview?fileName=xxx",
- "defaultDeskPageId": "Page_f0d175ba73b74e2a9a17a0150b3d8849",
- "defaultShowId": "Page_f0d175ba73b74e2a9a17a0150b3d8849",
- "icon": "",
- "jarRunEnv": "openjdk:8-jdk-alpine",
- "suposCpbVersion": "supOS-1.8.2",
- "totalPage": 1,
- "totalSymbol": 0,
- "userId": "1",
- "vendorName": "supos",
- "order": 10000,
- "children": [
- {
- "id": "Folder_41d355ee3641de25ac4c6e355e0c4c6e",
- "name": "New Folder 1",
- "description": "",
- "parentId": "App_bac090d688004de9bf927b9ff66bfca7",
- "appId": "App_bac090d688004de9bf927b9ff66bfca7",
- "templateName": "Folder",
- "menuDisplay": true,
- "hasChildren": true,
- "order": 10000,
- "children": [
- {
- "id": "Folder_105a11e36d6848e4a4eb85869bfede4e",
- "name": "New Folder 2",
- "description": "",
- "parentId": "App_bac090d688004de9bf927b9ff66bfca7",
- "appId": "App_bac090d688004de9bf927b9ff66bfca7",
- "templateName": "Folder",
- "menuDisplay": true,
- "hasChildren": false,
- "order": 10000
}, - {
- "id": "Page_314e531cbcdd4faeb2174f5eb42be97e",
- "name": "page1",
- "description": "",
- "layout": "{\"pageConfig\":{\"platformLayoutType\":\"PC\",\"singleLayout\":true,\"lwType\":\"1\",\"lwValue\":1638,\"lhValue\":912,\"linkage\":\"0\",\"background\":\"\",\"pageId\":\"Page_314e531cbcdd4faeb2174f5eb42be97e\"},\"layoutNodes\":[{\"kind\":\"free\",\"col\":1,\"colW\":200,\"w\":240,\"h\":44.9,\"x\":0,\"y\":0,\"i\":\"2be97e-0\",\"moved\":false,\"static\":false,\"isResizable\":false,\"minW\":1,\"minH\":1,\"type\":\"2\",\"lw\":1638,\"lh\":912,\"opacity\":1,\"id\":\"Layout_5a1ebebfe2bd4f18b80a24047a004962\"}]}",
- "type": 1,
- "url": "",
- "parentId": "Folder_41d355ee3641de25ac4c6e355e0c4c6e",
- "appId": "App_bac090d688004de9bf927b9ff66bfca7",
- "kind": "free",
- "platformType": "PC",
- "menuDisplay": true,
- "mobileShowType": "auto",
- "navbarBgColor": "#ffffff",
- "navbarFront": "dark",
- "navbarStyle": "fixed",
- "extra": "{}",
- "order": 20000,
- "userId": "1",
- "originalImage": "/resource/App_bac090d688004de9bf927b9ff66bfca7/screenshot/original/Page_314e531cbcdd4faeb2174f5eb42be97e.png",
- "thumbnail": "/resource/App_bac090d688004de9bf927b9ff66bfca7/screenshot/thumbnail/Page_314e531cbcdd4faeb2174f5eb42be97e.png",
- "isWorkflow": false
}
]
}, - {
- "id": "Page_f0d175ba73b74e2a9a17a0150b3d8849",
- "name": "page1",
- "description": "",
- "layout": "{\"pageConfig\":{\"platformLayoutType\":\"PC\",\"singleLayout\":true,\"lwType\":\"1\",\"lwValue\":1638,\"lhValue\":912,\"linkage\":\"0\",\"background\":\"\",\"pageId\":\"Page_f0d175ba73b74e2a9a17a0150b3d8849\"},\"layoutNodes\":[{\"kind\":\"free\",\"col\":1,\"colW\":200,\"w\":240,\"h\":44.9,\"x\":0,\"y\":0,\"i\":\"3d8849-0\",\"moved\":false,\"static\":false,\"isResizable\":false,\"minW\":1,\"minH\":1,\"type\":\"2\",\"lw\":1638,\"lh\":912,\"opacity\":1,\"id\":\"Layout_9480068bb2bb40f0b0704ec7ae515ce0\"}]}",
- "type": 1,
- "url": "",
- "parentId": "App_bac090d688004de9bf927b9ff66bfca7",
- "appId": "App_bac090d688004de9bf927b9ff66bfca7",
- "kind": "free",
- "platformType": "PC",
- "menuDisplay": true,
- "mobileShowType": "auto",
- "navbarBgColor": "#ffffff",
- "navbarFront": "dark",
- "navbarStyle": "fixed",
- "extra": "{}",
- "order": 20000,
- "userId": "1",
- "originalImage": "/resource/App_bac090d688004de9bf927b9ff66bfca7/screenshot/original/Page_f0d175ba73b74e2a9a17a0150b3d8849.png",
- "thumbnail": "/resource/App_bac090d688004de9bf927b9ff66bfca7/screenshot/thumbnail/Page_f0d175ba73b74e2a9a17a0150b3d8849.png",
- "isWorkflow": false
}
]
}
Create a Page
Authorizations:
Request Body schema: application/json
name required | string Name |
description | string Description |
layout | string Page layout information in JSON format |
type | integer Page type is 1 for a blank page, 2 for an internal link, 3 for an external link |
url | string Page URL. It is empty if the type is 1 |
parentId required | string Parent ID |
appId required | string APP ID |
kind | string Enum: "free" "new" Layout mode is "free" for free layout, "new" for grid layout |
platformType | string Enum: "PC" "mobile" Platform type is "PC" for PC Web, "mobile" for mobile devices |
menuDisplay | boolean Indicates whether it is displayed in the system menu bar |
mobileShowType | string Enum: "auto" "portrait" "landscape" Display mode is "auto" for automatic portrait/landscape, "portrait" for portrait, "landscape" for landscape |
navbarBgColor | string Navigation bar background color |
navbarFront | string Navigation bar font color. Use "dark" when the background color is light, and "light" when the background color is dark |
navbarStyle | string Navigation bar style is "fixed" for fixed, "suspend" for floating |
isWorkflow | boolean Indicates whether the workflow is enabled |
required | Array of objects (CreatePageLayout) Layout block parameters. Required. A page must include at least one layout block |
Responses
Request samples
- Payload
{- "name": "page",
- "description": "",
- "layout": "",
- "type": 1,
- "url": "",
- "parentId": "App_bac090d688004de9bf927b9ff66bfca7",
- "appId": "App_bac090d688004de9bf927b9ff66bfca7",
- "kind": "free",
- "platformType": "PC",
- "menuDisplay": true,
- "mobileShowType": "auto",
- "navbarBgColor": "#ffffff",
- "navbarFront": "dark",
- "navbarStyle": "fixed",
- "isWorkflow": false,
- "layouts": [
- {
- "description": "",
- "context": "{}"
}
]
}
Response samples
- 201
- 400
{- "location": "string"
}
Get Page Details
Authorizations:
path Parameters
pageId required | string Page ID |
query Parameters
kind | string Data type to retrieve; "new" for draft data |
Responses
Response samples
- 200
{- "layouts": [
- {
- "id": "Layout_9480068bb2bb40f0b0704ec7ae515ce0",
- "name": "3d8849-0",
- "description": "layout",
- "context": "{}",
- "parentId": "Page_f0d175ba73b74e2a9a17a0150b3d8849",
- "appId": "Page",
- "kind": "free"
}
], - "id": "Page_f0d175ba73b74e2a9a17a0150b3d8849",
- "name": "page",
- "description": "",
- "layout": "{\"pageConfig\":{\"platformLayoutType\":\"PC\",\"singleLayout\":true,\"lwType\":\"1\",\"lwValue\":1638,\"lhValue\":912,\"linkage\":\"0\",\"background\":\"\",\"pageId\":\"Page_f0d175ba73b74e2a9a17a0150b3d8849\"},\"layoutNodes\":[{\"kind\":\"free\",\"col\":1,\"colW\":200,\"w\":240,\"h\":44.9,\"x\":0,\"y\":0,\"i\":\"3d8849-0\",\"moved\":false,\"static\":false,\"isResizable\":false,\"minW\":1,\"minH\":1,\"type\":\"2\",\"lw\":1638,\"lh\":912,\"opacity\":1,\"id\":\"Layout_9480068bb2bb40f0b0704ec7ae515ce0\"}]}",
- "type": 1,
- "url": "",
- "parentId": "App_bac090d688004de9bf927b9ff66bfca7",
- "appId": "App_bac090d688004de9bf927b9ff66bfca7",
- "kind": "free",
- "platformType": "PC",
- "menuDisplay": true,
- "mobileShowType": "auto",
- "navbarBgColor": "#ffffff",
- "navbarFront": "dark",
- "navbarStyle": "fixed",
- "extra": "{}",
- "order": 20000,
- "userId": "1",
- "originalImage": "/resource/App_bac090d688004de9bf927b9ff66bfca7/screenshot/original/Page_f0d175ba73b74e2a9a17a0150b3d8849.png",
- "thumbnail": "/resource/App_bac090d688004de9bf927b9ff66bfca7/screenshot/thumbnail/Page_f0d175ba73b74e2a9a17a0150b3d8849.png",
- "isWorkflow": false
}
Modify Page Information
Authorizations:
path Parameters
pageId required | string Page ID |
Request Body schema: application/json
name | string Name |
description | string Description |
layout | string Page layout information in JSON format |
type | integer Page type is 1 for a blank page, 2 for an internal link, 3 for an external link |
url | string Page URL. It is empty if the type is 1 |
platformType | string Platform type is "PC" for PC Web, "mobile" for mobile devices |
menuDisplay | boolean Indicates whether it is displayed in the system menu bar |
mobileShowType | string Enum: "auto" "portrait" "landscape" Display mode is "auto" for automatic portrait/landscape, "portrait" for portrait, "landscape" for landscape |
navbarBgColor | string Navigation bar background color |
navbarFront | string Navigation bar font color. Use "dark" when the background color is light, and "light" when the background color is dark |
navbarStyle | string Navigation bar style is "fixed" for fixed, "suspend" for floating |
isWorkflow | boolean Indicates whether the workflow is enabled |
Responses
Request samples
- Payload
{- "name": "page",
- "description": "",
- "layout": "{\"pageConfig\":{\"platformLayoutType\":\"PC\",\"singleLayout\":true,\"lwType\":\"1\",\"lwValue\":1638,\"lhValue\":912,\"linkage\":\"0\",\"background\":\"\",\"pageId\":\"Page_f0d175ba73b74e2a9a17a0150b3d8849\"},\"layoutNodes\":[{\"kind\":\"free\",\"col\":1,\"colW\":200,\"w\":240,\"h\":44.9,\"x\":0,\"y\":0,\"i\":\"3d8849-0\",\"moved\":false,\"static\":false,\"isResizable\":false,\"minW\":1,\"minH\":1,\"type\":\"2\",\"lw\":1638,\"lh\":912,\"opacity\":1,\"id\":\"Layout_9480068bb2bb40f0b0704ec7ae515ce0\"}]}",
- "type": 1,
- "url": "",
- "platformType": "PC",
- "menuDisplay": false,
- "mobileShowType": "auto",
- "navbarBgColor": "#ffffff",
- "navbarFront": "dark",
- "navbarStyle": "fixed",
- "isWorkflow": false
}
Response samples
- 400
400
Create Layout
Authorizations:
path Parameters
pageId required | string Page ID |
Request Body schema: application/json
name required | string Name |
description | string Description |
context | string Context in JSON format |
kind | string Enum: "free" "new" Layout mode is "free" for free layout, "new" for grid layout |
appId | string APP ID |
Responses
Request samples
- Payload
{- "name": "3d8849-0",
- "description": "",
- "context": "{}",
- "kind": "free",
- "appId": "App_bac090d688004de9bf927b9ff66bfca7"
}
Response samples
- 201
- 400
- 409
{- "location": "api/layouts/Car001"
}
Modify Layout Information
Authorizations:
path Parameters
layoutId required | string Layout ID |
Request Body schema: application/json
description | string Remark |
context | string Context in JSON format |
Responses
Request samples
- Payload
{- "description": "layout",
- "context": "{}"
}
Response samples
- 400
400
Batch Query Object instance data
Authorizations:
Request Body schema: application/json
Array of objects (ObjectQueryItem) | |||||||
Array
|
Responses
Request samples
- Payload
{- "list": [
- {
- "dataSource": "system.template1.instance1.system.prop1",
- "type": "instance.property",
- "filters": {
- "aggrType": "first",
- "group": "time(48s,27s) fill(previous)",
- "limit": 601,
- "minDate": "2021-12-22T16:00:00Z",
- "maxDate": "2021-12-23T16:00:00Z"
}
}
]
}
Response samples
- 200
- 400
{- "list": [
- { }
]
}