Get all achievements that belong to a region
GET
/api/achievements/region/{regionId}Authorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Path Parameters
regionId*
Typestring
RequiredResponses
Success
JSON
[
{
"id": 1,
"regionId": 1,
"name": "Food Hygiene Certificate",
"description": "Awarded for completing a food hygiene course",
"icon": "fas fa-hands-wash",
"validityInDaysAfterAssignment": "356",
"isRequestableByFoodsaver": true,
"createdAt": "string",
"updatedAt": "string"
}
]
Authorization
api_key
Variables
Key
Value
regionId*
cURL
curl -X GET \
'http://localhost/api/achievements/region/{regionId}'
Samples
cURL
curl -X GET http://localhost/api/achievements/region/{regionId}
JavaScript
fetch("http://localhost/api/achievements/region/{regionId}")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/achievements/region/{regionId}");
Python
import requests
response = requests.get("http://localhost/api/achievements/region/{regionId}")
print(response.json())