Returns the public region data.
GET
/api/region/{regionId}/publicAuthorizations
Parameters
Path Parameters
regionId*
Typestring
RequiredResponses
success
JSON
{
"id": 0,
"name": "string",
"type": 0,
"description": "string",
"email": "string",
"hasAmbassador": true,
"location": {
"lat": 52.5,
"lon": 13.4
},
"statistics": {
"activeHomeRegionFoodsavers": 0,
"activeCoorporations": 0,
"pickupsLastMonth": 0,
"savedFoodKgLastMonth": 0,
"activeFoodSharePoints": 0,
"foodBasketsLastMonth": 0
}
}
Samples
cURL
curl -X GET http://localhost/api/region/{regionId}/public
JavaScript
fetch("http://localhost/api/region/{regionId}/public")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/region/{regionId}/public");
Python
import requests
response = requests.get("http://localhost/api/region/{regionId}/public")
print(response.json())