[openstreetmap/openstreetmap-website] Resourceful routes for traces API (PR #5390)

Anton Khorev notifications at github.com
Tue Dec 10 11:29:45 UTC 2024


This is only for `/api/0.6/gpx/`. There are other trace-related routes such as `/api/0.6/user/gpx_files` that are not changed here.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Use resourceful routes for api trace show, update, destroy
  * Use resourceful routes for api trace create
  * Use resourceful routes for api trace data

-- File Changes --

    M app/abilities/api_ability.rb (2)
    A app/controllers/api/traces/data_controller.rb (36)
    M app/controllers/api/traces_controller.rb (20)
    M config/routes.rb (15)
    A test/controllers/api/traces/data_controller_test.rb (114)
    M test/controllers/api/traces_controller_test.rb (114)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list