[openstreetmap/openstreetmap-website] Set default format for all API routes (#2065)

Tom Hughes notifications at github.com
Wed May 8 14:58:32 UTC 2019


tomhughes 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" }

Just the version number, which isn't XML.

Oh hang on, this is an ancient and known-not-working PR of mine, so I'm not sure what your point is? I has assumed it was your XML rework...

-- 
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_r282106694
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190508/11fc7428/attachment.html>


More information about the rails-dev mailing list