more testing of the api. Changing the generator so that it is a constant to come in line with the server url and the api version. Adding tracepoints per page to the capabilities api call. Better error message for api call.
This commit is contained in:
parent
654470b896
commit
3e9ceb0c38
5 changed files with 75 additions and 7 deletions
|
@ -25,6 +25,8 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.connect "api/#{API_VERSION}/way/:id", :controller => 'way', :action => 'delete', :id => /\d+/, :conditions => { :method => :delete }
|
||||
map.connect "api/#{API_VERSION}/ways", :controller => 'way', :action => 'ways', :id => nil
|
||||
|
||||
# FIXME Wouldn't capabilites be better placed somewhere else in this file
|
||||
# and without the #{API_VERSION}, so that clients can always find it?
|
||||
map.connect "api/#{API_VERSION}/capabilities", :controller => 'api', :action => 'capabilities'
|
||||
map.connect "api/#{API_VERSION}/relation/create", :controller => 'relation', :action => 'create'
|
||||
map.connect "api/#{API_VERSION}/relation/:id/relations", :controller => 'relation', :action => 'relations_for_relation', :id => /\d+/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue