Skip to content

Returns a list of all region of the user.

GET
/api/user/current/regions

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Responses

Success returns list of related regions of user
JSON
[
{
"id": "1",
"name": "Sinsheim",
"classification": 0,
"isResponsible": true
}
]
Authorization
api_key
cURL
curl -X GET \
'http://localhost/api/user/current/regions'

Samples

cURL
curl -X GET http://localhost/api/user/current/regions
JavaScript
fetch("http://localhost/api/user/current/regions")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/current/regions");
Python
import requests
response = requests.get("http://localhost/api/user/current/regions")
print(response.json())