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/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to