首页看板查询
本地
本地
GET
http://127.0.0.1:9999/api/v1/board/home
看板
请求参数
Header 参数
x-token
string
可选
默认值:
{{x-token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9999/api/v1/board/home' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
name
string
必需
config
string
必需
tenant_id
string
必需
created_at
string
必需
updated_at
string
必需
home_flag
string
必需
description
string
必需
remark
null
必需
menu_flag
string
必需
示例
{
"code": 200,
"message": "操作成功",
"data": {
"id": "f468e8b1-3cb6-9351-af34-b17e7ff69bf3",
"name": "我去恶趣味",
"config": "{\"layout\":[{\"x\":6,\"y\":0,\"w\":6,\"h\":5,\"minW\":3,\"minH\":3,\"i\":1742462435750074,\"data\":{\"cardId\":\"chart-bar\",\"type\":\"chart\",\"title\":\"柱状图\",\"config\":{\"name\":\"123\"},\"layout\":{\"w\":6,\"h\":5,\"minW\":3,\"minH\":3},\"basicSettings\":{},\"dataSource\":{\"origin\":\"device\",\"sourceNum\":9,\"isSupportTimeRange\":true,\"isSupportAggregate\":true,\"systemSource\":[{}],\"deviceSource\":[{\"metricsOptions\":[],\"metricsOptionsFetched\":false}],\"deviceCount\":1}},\"moved\":false},{\"x\":0,\"y\":5,\"w\":6,\"h\":2,\"minW\":1,\"minH\":1,\"i\":1742462437774628,\"data\":{\"cardId\":\"chart-digit\",\"type\":\"chart\",\"title\":\"数字指示器2\",\"config\":{\"name\":\"123\"},\"layout\":{\"w\":2,\"h\":2,\"minH\":1,\"minW\":1},\"basicSettings\":{},\"dataSource\":{\"origin\":\"device\",\"sourceNum\":1,\"systemSource\":[{}],\"deviceSource\":[{}]}},\"moved\":false},{\"x\":6,\"y\":5,\"w\":6,\"h\":2,\"minW\":2,\"minH\":1,\"i\":1742462439006390,\"data\":{\"cardId\":\"chart-demo\",\"type\":\"chart\",\"title\":\"数字指示器\",\"config\":{\"name\":\"123\"},\"layout\":{\"w\":5,\"h\":3,\"minH\":1,\"minW\":2},\"basicSettings\":{},\"dataSource\":{\"origin\":\"device\",\"sourceNum\":1,\"systemSource\":[{}],\"deviceSource\":[{}]}},\"moved\":false},{\"x\":0,\"y\":0,\"w\":6,\"h\":5,\"minW\":3,\"minH\":3,\"i\":1742462440062251,\"data\":{\"cardId\":\"chart-curve\",\"type\":\"chart\",\"title\":\"曲线\",\"config\":{\"name\":\"123\",\"selectedTheme\":\"colorGroups2\",\"colorGroups\":{\"colorGroup\":[{\"name\":\"Sapphire Skies\",\"line\":\"rgb(0, 0, 205)\",\"top\":\"rgb(195, 205, 243)\",\"bottom\":\"rgb(239, 239, 253)\"},{\"name\":\"Sunlit Terra\",\"line\":\"rgb(205, 92, 0)\",\"top\":\"rgb(235, 154, 88)\",\"bottom\":\"rgb(255, 221, 175)\"},{\"name\":\"Twilight Sapphire\",\"line\":\"rgb(0, 0, 128)\",\"top\":\"rgb(33, 68, 115)\",\"bottom\":\"rgb(174, 198, 207)\"},{\"name\":\"Mint Whisper\",\"line\":\"rgb(0, 128, 0)\",\"top\":\"rgb(199, 233, 192)\",\"bottom\":\"rgb(232, 240, 232)\"},{\"name\":\"Apricot Glow\",\"line\":\"rgb(255, 140, 0)\",\"top\":\"rgb(255, 175, 95)\",\"bottom\":\"rgb(255, 204, 153)\"},{\"name\":\"Meadow Breeze\",\"line\":\"rgb(34, 139, 34)\",\"top\":\"rgb(155, 215, 112)\",\"bottom\":\"rgb(215, 255, 179)\"},{\"name\":\"Dusk Rose\",\"line\":\"rgb(220, 20, 60)\",\"top\":\"rgb(217, 136, 128)\",\"bottom\":\"rgb(239, 187, 204)\"},{\"name\":\"Canyon Echo\",\"line\":\"rgb(139, 69, 19)\",\"top\":\"rgb(193, 108, 61)\",\"bottom\":\"rgb(252, 204, 166)\"},{\"name\":\"Ocean Drift\",\"line\":\"rgb(0, 128, 128)\",\"top\":\"rgb(62, 133, 145)\",\"bottom\":\"rgb(181, 222, 213)\"}]}},\"layout\":{\"w\":6,\"h\":5,\"minW\":3,\"minH\":3},\"basicSettings\":{\"showTitle\":true,\"title\":\"6456456546\"},\"dataSource\":{\"origin\":\"device\",\"sourceNum\":9,\"isSupportTimeRange\":true,\"isSupportAggregate\":true,\"systemSource\":[{}],\"deviceSource\":[{\"metricsOptions\":[],\"metricsOptionsFetched\":true,\"deviceId\":\"c44f916e-9485-8a88-cb22-8f1434938de4\",\"metricsId\":\"\",\"metricsName\":\"\",\"name\":\"hefeng-99\",\"metricsShow\":false,\"metricsType\":\"telemetry\",\"metricsDataType\":\"number\",\"aggregate_function\":\"avg\"}],\"deviceCount\":1}},\"moved\":false}],\"theme\":\"theme-microsoft-style\"}",
"tenant_id": "9c3f8a70",
"created_at": "2025-03-20T17:19:57.622054+08:00",
"updated_at": "2025-03-21T15:43:17.093264+08:00",
"home_flag": "Y",
"description": "",
"remark": null,
"menu_flag": ""
}
}
修改于 2024-12-19 04:03:28