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