]> git.openstreetmap.org Git - rails.git/commitdiff
Expose changeset query limit values in api capabilities
authorAnton Khorev <tony29@yandex.ru>
Tue, 8 Aug 2023 00:49:14 +0000 (03:49 +0300)
committerAnton Khorev <tony29@yandex.ru>
Tue, 8 Aug 2023 00:49:14 +0000 (03:49 +0300)
app/views/api/capabilities/show.builder

index b6a38723db2d37870c702d6d0119d5313df94c40..1258601bb9abb14e8dded8ca844e037b9fb7d0a1 100644 (file)
@@ -7,7 +7,9 @@ xml.osm(OSM::API.new.xml_root_attributes) do |osm|
     api.tracepoints(:per_page => Settings.tracepoints_per_page)
     api.waynodes(:maximum => Settings.max_number_of_way_nodes)
     api.relationmembers(:maximum => Settings.max_number_of_relation_members)
-    api.changesets(:maximum_elements => Changeset::MAX_ELEMENTS)
+    api.changesets(:maximum_elements => Changeset::MAX_ELEMENTS,
+                   :default_query_limit => Settings.default_changeset_query_limit,
+                   :maximum_query_limit => Settings.max_changeset_query_limit)
     api.timeout(:seconds => Settings.api_timeout)
     api.status(:database => @database_status,
                :api => @api_status,