Renaming the include action to expand_bbox in the changeset controller.
This commit is contained in:
parent
8348493ccb
commit
a4e5e8437f
3 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ class ChangesetController < ApplicationController
|
|||
# increase the size of the bounding box. this is a hint that clients can
|
||||
# set either before uploading a large number of changes, or changes that
|
||||
# the client (but not the server) knows will affect areas further away.
|
||||
def include
|
||||
def expand_bbox
|
||||
# only allow POST requests, because although this method is
|
||||
# idempotent, there is no "document" to PUT really...
|
||||
if request.post?
|
||||
|
|
|
@ -6,7 +6,7 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.connect "api/#{API_VERSION}/changeset/create", :controller => 'changeset', :action => 'create'
|
||||
map.connect "api/#{API_VERSION}/changeset/:id/upload", :controller => 'changeset', :action => 'upload', :id => /\d+/
|
||||
map.connect "api/#{API_VERSION}/changeset/:id/download", :controller => 'changeset', :action => 'download', :id => /\d+/
|
||||
map.connect "api/#{API_VERSION}/changeset/:id/include", :controller => 'changeset', :action => 'include', :id => /\d+/
|
||||
map.connect "api/#{API_VERSION}/changeset/:id/expand_bbox", :controller => 'changeset', :action => 'expand_bbox', :id => /\d+/
|
||||
map.connect "api/#{API_VERSION}/changeset/:id", :controller => 'changeset', :action => 'read', :id => /\d+/, :conditions => { :method => :get }
|
||||
map.connect "api/#{API_VERSION}/changeset/:id", :controller => 'changeset', :action => 'update', :id => /\d+/, :conditions => { :method => :put }
|
||||
map.connect "api/#{API_VERSION}/changeset/:id/close", :controller => 'changeset', :action => 'close', :id =>/\d+/
|
||||
|
|
|
@ -851,7 +851,7 @@ EOF
|
|||
# call the include method and assert properties of the bbox
|
||||
def check_after_include(changeset_id, lon, lat, bbox)
|
||||
content "<osm><node lon='#{lon}' lat='#{lat}'/></osm>"
|
||||
post :include, :id => changeset_id
|
||||
post :expand_bbox, :id => changeset_id
|
||||
assert_response :success, "Setting include of changeset failed: #{@response.body}"
|
||||
|
||||
# check exactly one changeset
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue