[openstreetmap/openstreetmap-website] Set default format for all API routes (#2065)
mmd
notifications at github.com
Wed May 8 15:02:53 UTC 2019
mmd-osm commented on this pull request.
> )
assert_routing(
{ :path => "/api/0.6/node/1", :method => :delete },
- { :controller => "nodes", :action => "delete", :id => "1" }
+ { :controller => "nodes", :action => "delete", :id => "1", :format => "xml" }
Oh, right, sorry for the confusion. It felt a bit silly to have so much duplication in my XML rework, started looking around, and came across this old PR. I was wondering wether that's something worth considering.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2065#discussion_r282108800
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190508/927367b6/attachment.html>
More information about the rails-dev
mailing list