ajnisbet / opentopodata

Open alternative to the Google Elevation API!
https://www.opentopodata.org
MIT License
312 stars 69 forks source link

API endpoint for querying the available datasets #54

Closed janusw closed 2 years ago

janusw commented 2 years ago

Carrying over a point from https://github.com/ajnisbet/opentopodata/issues/47#issuecomment-900861059:

Btw, another useful addition for the /health endpoint might be to list the available datasets (which, apart from the version, can be another major difference in how different instances of OTD behave).

And yes, the datasets are listed in config.yaml, so of course they are obvious to the server admin, but in general not to all end users.

This information could be included in the /health endpoint or it could go into a new endpoint like /datasets or similar.

naught101 commented 2 years ago

Agreed, this would be super useful.

ajnisbet commented 2 years ago

This has been merged into master in 4089c0e45dba6e85cd629756b6f9012f71b45302 via 99d1d16816d33932524b7a28bb080ea35e3d99d4, and is deployed to the api servers: https://api.opentopodata.org/datasets

janusw commented 2 years ago

Pretty cool, thanks for taking care of this! :D