add pipeline resource. refs #1357
[arvados.git] / config / routes.rb
1 Server::Application.routes.draw do
2   resources :pipelines
3   resources :nodes
4   resources :collections
5   resources :metadata
6
7   # The priority is based upon order of creation:
8   # first created -> highest priority.
9
10   # Sample of regular route:
11   #   match 'products/:id' => 'catalog#view'
12   # Keep in mind you can assign values other than :controller and :action
13
14   # Sample of named route:
15   #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
16   # This route can be invoked with purchase_url(:id => product.id)
17
18   # Sample resource route (maps HTTP verbs to controller actions automatically):
19   #   resources :products
20
21   # Sample resource route with options:
22   #   resources :products do
23   #     member do
24   #       get 'short'
25   #       post 'toggle'
26   #     end
27   #
28   #     collection do
29   #       get 'sold'
30   #     end
31   #   end
32
33   # Sample resource route with sub-resources:
34   #   resources :products do
35   #     resources :comments, :sales
36   #     resource :seller
37   #   end
38
39   # Sample resource route with more complex sub-resources
40   #   resources :products do
41   #     resources :comments
42   #     resources :sales do
43   #       get 'recent', :on => :collection
44   #     end
45   #   end
46
47   # Sample resource route within a namespace:
48   #   namespace :admin do
49   #     # Directs /admin/products/* to Admin::ProductsController
50   #     # (app/controllers/admin/products_controller.rb)
51   #     resources :products
52   #   end
53
54   # You can have the root of your site routed with "root"
55   # just remember to delete public/index.html.
56   # root :to => 'welcome#index'
57
58   # See how all your routes lay out with "rake routes"
59
60   # This is a legacy wild controller route that's not recommended for RESTful applications.
61   # Note: This route will make all actions in every controller accessible via GET requests.
62   # match ':controller(/:action(/:id(.:format)))'
63
64   namespace :orvos do
65     namespace :v1 do
66       resources :collections
67       resources :metadata
68       resources :nodes
69       resources :pipelines
70       match '/nodes/:uuid/ping' => 'nodes#ping', :as => :ping_node
71       match '/metadata/:target_kind/:target_uuid' => 'metadata#index'
72     end
73   end
74
75 end