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