Listing Location Providers

To list location providers we need to do a GET request to /locationProviders.

Required Permission

can-list-location-providers

See Auth* (scopes).

Request

List all location providers:

GET /locationProviders

Response

If no location provider found:

HTTP/1.1 200 OK
[]

If one or more location providers found:

HTTP/1.1 200 OK
[
  {
    "id": "68144875-24e5-4a31-ae74-f0924d2c513e",
    "name": "Test",
    "details": "Test location provider"
  },
  {
    "id": "68144875-24e5-4a31-ae74-f0924d2c513e",
    "name": "Test",
    "details": "Test location provider",
    "locationsSource": {
      "endpoint": "http://remote-locations"
    }
  }
]

Failure

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""