IoT Stadium

API Documentation

Controller

Controller - GET Controller Detail

Get

{{url_iot_backend}}/ext/devices/:deviceId/actuator/:id
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Authorization",
      "value": "Bearer {{token}}"
    }

Parameter

Field Type Description
deviceID Integer

id Integer

The selected controller ID

{
    "message": "success",
    "code": 200,
    "data": {
        "device_actuators": {
            "id": 144,
            "actuator_name": "test 1 ",
            "action_key": "test66",
            "access_type": null,
            "last_update": "",
            "device_actuator_action": [
                {
                    "device_actuator_id": 144,
                    "id": 741,
                    "action_value": "true"
                },
                {
                    "device_actuator_id": 144,
                    "id": 742,
                    "action_value": "false"
                }
            ]
        }
    }
}
{
    "message": "data not found",
    "errors": [
        {
            "message": "data not found",
            "field": "device_actuator"
        }
    ],
    "code": 404
}                                                
{
    "message": "Not Allowed",
    "error": {
        "message": "Not Allowed",
        "field": "user"
    },
    "code": 403
}