[openstreetmap/openstreetmap-website] Resourceful routes for users api (PR #5433)
Anton Khorev
notifications at github.com
Sat Dec 21 02:41:45 UTC 2024
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5433
-- Commit Summary --
* Move users index route to api namespace
* Move user show route to api namespace
* Move user details check methods to helper module
* Create user details resource in api namespace
* Create user traces resource in api namespace
* Test api user traces failing without necessary scope
-- File Changes --
M app/abilities/api_ability.rb (4)
A app/controllers/api/users/details_controller.rb (30)
A app/controllers/api/users/traces_controller.rb (14)
M app/controllers/api/users_controller.rb (29)
M app/views/api/users/_user.json.jbuilder (4)
M app/views/api/users/_user.xml.builder (4)
A app/views/api/users/details/show.json.jbuilder (3)
A app/views/api/users/details/show.xml.builder (4)
R app/views/api/users/traces/index.builder (0)
M config/routes.rb (12)
A test/controllers/api/users/details_controller_test.rb (116)
A test/controllers/api/users/details_test_helper.rb (134)
A test/controllers/api/users/traces_controller_test.rb (53)
M test/controllers/api/users_controller_test.rb (264)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5433.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5433.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5433
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5433 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241220/8fb272b0/attachment.htm>
More information about the rails-dev
mailing list