Geotrek-rando
Geotrek-rando copied to clipboard
Check the version of Geotrek-Admin used to generate the API
- Get url
/api/parameters.json
- If HTTP status code != 2xx, show this message : "Unable to get API data (HTTP status code
)." - Read value for key
geotrek_admin_version
- If value is < 2.9.3 (should compare numerically for each number from left to right), do not try to get any other data from API (it could crash) and show this message "Geotrek-Rando required API data generated with Geotrek-Admin >= 2.9.3"