Beacon

List beacons for region

Changed on

Get all the beacons for a certain region

get/beacon/forregion/{region}

Request

Path parameters

regionstring required
Example:1d9e80ef851d212aca82cf23

The id of an active region.

Response

OK

countnumber

Total number of beacons in the list

Example response

{
  "beacons": [
    {
      "_id": "1d9e80ef851d212aca82cf23",
      "batteryLevel": 99,
      "data": {
        "key1": "value1",
        "key2": "value2"
      },
      "latitude": 52.12772,
      "longitude": 4.1662,
      "minor": 100,
      "name": "Test beacon",
      "notification": "1d9e80ef851d212aca82cf23",
      "proximityNotifications": {
        "far": "1d9e80ef851d212aca82cf23",
        "immediate": "1d9e80ef851d212aca82cf23",
        "near": "1d9e80ef851d212aca82cf23"
      },
      "purpose": "Testing purposes"
    }
  ],
  "count": 1
}

Changes