Geotrek-rando icon indicating copy to clipboard operation
Geotrek-rando copied to clipboard

Check the version of Geotrek-Admin used to generate the API

Open gutard opened this issue 9 years ago • 0 comments

  • 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"

gutard avatar Feb 22 '16 17:02 gutard