[openstreetmap/openstreetmap-website] Convert API element history actions to versions resources (PR #5638)
Anton Khorev
notifications at github.com
Sun Feb 9 16:46:01 UTC 2025
Declares resources on the following paths: `node/:id/history`, `way/:id/history`, `relation/:id/history`.
`history` action becomes a standard `index`.
They were named "history" and I keep this name in paths, but later I'll have to refer to each item in "history", and how do you name such item? Probably "version". Then a collection of these items is "versions", that's why I'm calling the resources "versions".
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5638
-- Commit Summary --
* Convert api element history actions to versions resources
-- File Changes --
M app/abilities/api_ability.rb (3)
M app/controllers/api/old_elements_controller.rb (8)
M app/controllers/api/old_nodes_controller.rb (2)
M app/controllers/api/old_relations_controller.rb (2)
M app/controllers/api/old_ways_controller.rb (2)
R app/views/api/old_nodes/index.json.jbuilder (0)
R app/views/api/old_nodes/index.xml.builder (0)
R app/views/api/old_relations/index.json.jbuilder (0)
R app/views/api/old_relations/index.xml.builder (0)
R app/views/api/old_ways/index.json.jbuilder (0)
R app/views/api/old_ways/index.xml.builder (0)
M app/views/old_elements/index.html.erb (2)
M config/routes.rb (6)
M test/controllers/api/old_nodes_controller_test.rb (89)
M test/controllers/api/old_relations_controller_test.rb (90)
M test/controllers/api/old_ways_controller_test.rb (97)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5638.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5638.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5638
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5638 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250209/87a6dd4a/attachment.htm>
More information about the rails-dev
mailing list