Widget - GET Widget List
Get
{{url_iot_backend}}/ext/dashboards/:dashboardId/widgets
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
},
{
"message": "success",
"code": 200,
"data": {
"widgets": [
{
"id": "810",
"widget_name": "test gauge chart update",
"description": null,
"height": "300",
"width": "6",
"widget_type": "gauge",
"dashboard_id": 209,
"created_at": "2024-07-17 08:50:33",
"dashboards": {
"id": 209
},
"map": [],
"device_actuator": [],
"data_sources": [
{
"id": 2507,
"widget_id": 810,
"device_id": 617,
"telemetry_key": "temp",
"unit": "°C",
"label": "temp22",
"device_name": "test mqtt",
"min_value": "10.00",
"max_value": "20.00"
}
]
},
{
"id": "794",
"widget_name": "test line chart",
"description": null,
"height": "300",
"width": "6",
"widget_type": "line",
"dashboard_id": 209,
"created_at": "2024-07-17 07:51:13",
"dashboards": {
"id": 209
},
"map": [],
"device_actuator": [],
"data_sources": [
{
"id": 2489,
"widget_id": 794,
"device_id": 617,
"telemetry_key": "Hum_SHT",
"unit": "°C",
"label": "Int hum sensor",
"device_name": "test mqtt",
"min_value": "0.00",
"max_value": "0.00"
},
{
"id": 2490,
"widget_id": 794,
"device_id": 617,
"telemetry_key": "gateway_id",
"unit": "%",
"label": "gateway_id",
"device_name": "test mqtt",
"min_value": "0.00",
"max_value": "0.00"
}
]
}
]
}
}
{
"status": 401,
"error": "Unauthorized",
"message": "Invalid or missing authentication token. Please login again."
}
{
"status": 404,
"error": "Not Found",
"message": "Dashboard with ID 209 was not found."
}