API 0.4: User rename, view trace links, tag filter summary / see all link, traces testing

This commit is contained in:
Dan Moore 2007-03-29 22:14:39 +00:00
parent 11279ebfe9
commit 2709027882
11 changed files with 129 additions and 74 deletions

View file

@ -2,7 +2,7 @@ ActionController::Routing::Routes.draw do |map|
# API
map.connect "api/#{API_VERSION}/node/create", :controller => 'node', :action => 'create'
map.connect "api/#{API_VERSION}/node/:id/history", :controller => 'old_node', :action => 'history', :id => nil # TODO is this :id => nil correct? looks like it would throw away essential info - if it does check all these id => nils
map.connect "api/#{API_VERSION}/node/:id/history", :controller => 'old_node', :action => 'history', :id => nil
map.connect "api/#{API_VERSION}/node/:id", :controller => 'node', :action => 'rest', :id => nil
map.connect "api/#{API_VERSION}/nodes", :controller => 'node', :action => 'nodes', :id => nil
@ -44,6 +44,10 @@ ActionController::Routing::Routes.draw do |map|
map.connect '/traces/tag/:tag', :controller => 'trace', :action => 'list', :id => nil
map.connect '/traces/tag/:tag/page/:page', :controller => 'trace', :action => 'list', :id => nil
# test pages
map.connect '/test/populate/:table/:from/:count', :controller => 'test', :action => 'populate'
map.connect '/test/populate/:table/:count', :controller => 'test', :action => 'populate', :from => 1
# fall through
map.connect ':controller/:action/:id'
end