[openstreetmap/openstreetmap-website] JSON output nodes, ways, relations, map (#2485)

mmd notifications at github.com
Sat Dec 28 10:42:35 UTC 2019


This is a follow up for #2221, now with jbuilder, and XML as default in each controller to avoid large scale changes to routes and tests.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/2485

-- Commit Summary --

  * API JSON output

-- File Changes --

    M app/controllers/api/map_controller.rb (12)
    M app/controllers/api/nodes_controller.rb (17)
    M app/controllers/api/old_controller.rb (12)
    M app/controllers/api/relations_controller.rb (27)
    M app/controllers/api/ways_controller.rb (27)
    A app/views/api/map/_root_attributes.json.jbuilder (5)
    A app/views/api/map/index.json.jbuilder (20)
    A app/views/api/nodes/_node.json.jbuilder (18)
    A app/views/api/nodes/index.json.jbuilder (5)
    A app/views/api/nodes/show.json.jbuilder (5)
    A app/views/api/old_nodes/_old_node.json.jbuilder (18)
    A app/views/api/old_nodes/history.json.jbuilder (5)
    A app/views/api/old_nodes/version.json.jbuilder (5)
    A app/views/api/old_relations/_old_relation.json.jbuilder (25)
    A app/views/api/old_relations/history.json.jbuilder (5)
    A app/views/api/old_relations/version.json.jbuilder (5)
    A app/views/api/old_ways/_old_way.json.jbuilder (16)
    A app/views/api/old_ways/history.json.jbuilder (5)
    A app/views/api/old_ways/version.json.jbuilder (5)
    A app/views/api/relations/_relation.json.jbuilder (25)
    A app/views/api/relations/full.json.jbuilder (22)
    A app/views/api/relations/index.json.jbuilder (5)
    A app/views/api/relations/relations_for_node.json.jbuilder (5)
    A app/views/api/relations/relations_for_relation.json.jbuilder (5)
    A app/views/api/relations/relations_for_way.json.jbuilder (5)
    A app/views/api/relations/show.json.jbuilder (5)
    A app/views/api/ways/_way.json.jbuilder (16)
    A app/views/api/ways/full.json.jbuilder (17)
    A app/views/api/ways/index.json.jbuilder (5)
    A app/views/api/ways/show.json.jbuilder (5)
    A app/views/api/ways/ways_for_node.json.jbuilder (5)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/2485.patch
https://github.com/openstreetmap/openstreetmap-website/pull/2485.diff

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191228/4991d004/attachment-0001.html>


More information about the rails-dev mailing list