IoT Stadium

API Documentation

Device Location

Device Location - GET Location Detail

Get

{{url_iot_backend}}/ext/locations/:id
{
    "message": "success",
    "code": 200,
    "data": {
        "locations": [
            {
                "id": 254,
                "location_name": "airport",
                "description": "",
                "address": "juanda",
                "created_by": {
                    "first_name": "tenant",
                    "last_name": "company",
                    "id": 78,
                    "email": "owner@gmail.com"
                },
                "coord_lat": "-7.38007105",
                "coord_long": "112.78532737805",
                "marker_image": "",
                "custom_field": [
                    {
                        "id": 426,
                        "key": "atc",
                        "parent_id": null,
                        "child": [
                            {
                                "id": 430,
                                "key": "monitoring area",
                                "parent_id": 426,
                                "child": []
                            },
                            {
                                "id": 431,
                                "key": "control button area",
                                "parent_id": 426,
                                "child": []
                            }
                        ]
                    },
                    {
                        "id": 427,
                        "key": "fuel area",
                        "parent_id": null,
                        "child": []
                    },
                    {
                        "id": 428,
                        "key": "parkir",
                        "parent_id": null,
                        "child": []
                    },
                    {
                        "id": 429,
                        "key": "gate 1",
                        "parent_id": null,
                        "child": []
                    }
                ]
            }
        ]
    }
}
{
    "message": "data not found",
    "errors": [
        {
            "message": "data not found",
            "field": "location"
        }
    ],
    "code": 404
}                                                
{
    "message": "Not Allowed",
    "error": {
        "message": "Not Allowed",
        "field": "user"
    },
    "code": 403
}