[openstreetmap/openstreetmap-website] Add standard patch/put api message update action (PR #5410)
Anton Khorev
notifications at github.com
Tue Dec 17 14:45:05 UTC 2024
A standard HTTP verb for update action in Rails is PATCH/PUT, but for messages API [it was made POST for some reason](https://wiki.openstreetmap.org/wiki/Messaging_API_proposal#Update_read_status_of_a_message). Here I'm adding PATCH/PUT. I'm keeping POST outside of the resources, but we should deprecate it.
Also I'm moving the resources to the api namespace. This allows to remove `:as`.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5410
-- Commit Summary --
* Add patch/put api message update
* Move api messages resources to api namespace
-- File Changes --
M config/routes.rb (9)
M test/controllers/api/messages_controller_test.rb (30)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5410.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5410.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5410
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5410 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241217/04e795ad/attachment.htm>
More information about the rails-dev
mailing list