[openstreetmap/openstreetmap-website] Add support for an unversioned 'versions' API call (#2280)
Andy Allan
notifications at github.com
Wed Jun 26 14:52:40 UTC 2019
This will eventually replace the unversioned 'capabilities' call.
Client applications can use this versions call to find out what versions are available, if they support multiple versions. The capabilities of each version, and the format of the capabilities call, is then
able to change between versions. If a client only supports one version they can jump straight to the versioned capabilities call.
Additionally, supported versions are now a list of version identifiers, without any implications surrounding min/max values (e.g. guesswork for supported intermediate versions).
Fixes #2162
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/2280
-- Commit Summary --
* Add support for an unversioned 'versions' API call
-- File Changes --
M app/abilities/api_ability.rb (1)
A app/controllers/api/versions_controller.rb (15)
A app/views/api/versions/show.builder (8)
M config/routes.rb (3)
A test/controllers/api/versions_controller_test.rb (34)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/2280.patch
https://github.com/openstreetmap/openstreetmap-website/pull/2280.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2280
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190626/f7d5a0e8/attachment.html>
More information about the rails-dev
mailing list