Closed dlebauer closed 8 years ago
https://www.betydb.org/api/docs
is the "official" location of the BETYdb API documentation, and https://www.betydb.org/api/docs/beta
is the location of the documentation of the beta version (which is currently the only version, not counting the "old" API).
Requests to any unrecognized path under https://www.betydb.org/api
(including https://www.betydb.org/api/beta
) will now redirect to https://www.betydb.org/api/docs
. If you are using curl
, you have to use the -L
option to get the redirect to happen.
curl "https://www.betydb.org/api/docs"
will return the documentation in JSON format. Visiting "https://www.betydb.org/api/docs" in a browser will return it in HTML format; to view it in a browser in JSON format, visit "https://www.betydb.org/api/docs.json".
Currently, https://www.betydb.org/api/beta returns
but, 1) https://www.betydb.org/apipie does not exist and 2) we should provide a list of available endpoints as a json object. Similar to this version of USDA Plants