Skip to main content

List Locations


GET /services/api/v1/locations

Returns a list of locations.

Response

Results list.

{
"entries": [
{
"id": "1",
"ancestor_id": null,
"depth": 0,
"subtree_ids": ["1"],
"has_public_name": false,
"ancestor_ids": [],
"name_en": "Lana",
"name_de": "Lana",
...
},
{
"id": "2",
"ancestor_id": null,
"depth": 0,
"subtree_ids": ["2", "3", "4"],
"has_public_name": false,
"ancestor_ids": [],
"name_en": "Bolzano",
"name_de": "Bolzano",
...
},
{
"id": "3",
"ancestor_id": "2",
"depth": 1,
"subtree_ids": ["3"],
"has_public_name": false,
"ancestor_ids": ["2"],
"name_en": "Bolzano North",
"name_de": "Bolzano North",
...
},
{
"id": "4",
"ancestor_id": "2",
"depth": 1,
"subtree_ids": ["4"],
"has_public_name": false,
"ancestor_ids": ["2"],
"name_en": "Bolzano South",
"name_de": "Bolzano South",
...
}
],
"current_page": 1,
"per_page": 30,
"total_entries": 4
}