[openstreetmap/openstreetmap-website] JSON output nodes, ways, relations, map (#2485)
mmd
notifications at github.com
Wed Jan 22 21:32:11 UTC 2020
mmd-osm commented on this pull request.
> @@ -3,6 +3,52 @@ class ApiController < ApplicationController
private
+ ##
+ # Set default request format to xml unless a client requests a specific format,
+ # which can be done via (a) URL suffix and/or (b) HTTP Accept header, where
+ # the URL suffix always takes precedence over the Accept header.
+ def set_default_request_format
Ah, thanks! That's much better, I will change this in a minute.
--
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/2485#discussion_r369814760
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200122/29c378b6/attachment.htm>
More information about the rails-dev
mailing list