IoT Stadium

API Documentation

Widget

Widget - GET Widget Detail

Get

{{url_iot_backend}}/ext/dashboards/:dashboardId/widgets/:id
{
	"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
            },
            "device_actuator": [],
            "map": [],
            "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"
                }
            ]
        }
    }
}
{
    "message": "data not found",
    "errors": [
        {
            "message": "data not found",
            "field": "widget"
        }
    ],
    "code": 404
}