[openstreetmap/openstreetmap-website] API element resources - show/update/delete paths (PR #5617)

Anton Khorev notifications at github.com
Wed Feb 5 17:31:53 UTC 2025


Follows #5591.

Renames `delete` actions to standard `destroy`.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5617

-- Commit Summary --

  * Make api show/update/destroy node actions resourceful
  * Make api show/update/destroy way actions resourceful
  * Make api show/update/destroy relation actions resourceful
  * Move api element show and full tests
  * Split api relation show/full tests
  * Split api way show test
  * Split api node show test
  * Test if api relation show/full responses contain required elements
  * Test Last-Modified header of api show element responses

-- File Changes --

    M app/abilities/api_ability.rb (2)
    M app/controllers/api/nodes_controller.rb (12)
    M app/controllers/api/relations_controller.rb (12)
    M app/controllers/api/ways_controller.rb (12)
    M config/routes.rb (12)
    M test/controllers/api/nodes_controller_test.rb (26)
    M test/controllers/api/relations_controller_test.rb (115)
    M test/controllers/api/ways_controller_test.rb (60)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5617.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5617.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5617
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5617 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250205/83e97990/attachment.htm>


More information about the rails-dev mailing list