Merge pull request #5591 from AntonKhorev/api-element-resources--index-paths
API element resources - index paths
This commit is contained in:
commit
7cf9bf0e55
5 changed files with 236 additions and 218 deletions
|
@ -2130,7 +2130,7 @@ module Api
|
|||
# add a single node to it
|
||||
with_controller(NodesController.new) do
|
||||
xml = "<osm><node lon='0.1' lat='0.2' changeset='#{changeset_id}'/></osm>"
|
||||
put node_create_path, :params => xml, :headers => auth_header
|
||||
post api_nodes_path, :params => xml, :headers => auth_header
|
||||
assert_response :success, "Couldn't create node."
|
||||
end
|
||||
|
||||
|
@ -2145,7 +2145,7 @@ module Api
|
|||
# add another node to it
|
||||
with_controller(NodesController.new) do
|
||||
xml = "<osm><node lon='0.2' lat='0.1' changeset='#{changeset_id}'/></osm>"
|
||||
put node_create_path, :params => xml, :headers => auth_header
|
||||
post api_nodes_path, :params => xml, :headers => auth_header
|
||||
assert_response :success, "Couldn't create second node."
|
||||
end
|
||||
|
||||
|
@ -2515,7 +2515,7 @@ module Api
|
|||
with_controller(NodesController.new) do
|
||||
# create a new node
|
||||
xml = "<osm><node changeset='#{cs_id}' lat='0.0' lon='0.0'/></osm>"
|
||||
put node_create_path, :params => xml, :headers => auth_header
|
||||
post api_nodes_path, :params => xml, :headers => auth_header
|
||||
assert_response :success, "can't create a new node"
|
||||
node_id = @response.body.to_i
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue