]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/changesets/changesets.xml.builder
JSON output added to changeset(s) endpoints
[rails.git] / app / views / api / changesets / changesets.xml.builder
diff --git a/app/views/api/changesets/changesets.xml.builder b/app/views/api/changesets/changesets.xml.builder
new file mode 100644 (file)
index 0000000..c68a76d
--- /dev/null
@@ -0,0 +1,9 @@
+xml.instruct! :xml, :version => "1.0"
+
+# basic attributes
+
+xml.osm(OSM::API.new.xml_root_attributes) do |osm|
+  @changesets.each do |changeset|
+    osm << render(changeset)
+  end
+end