Do not try to start a job when too few slurm nodes are idle. refs #1417
[arvados.git] / config / routes.rb
1 Server::Application.routes.draw do
2   resources :job_steps
3   resources :jobs
4   resources :api_client_authorizations
5   resources :api_clients
6   resources :logs
7   resources :groups
8   resources :specimens
9   resources :collections
10   resources :links
11   resources :nodes
12   resources :pipelines
13   resources :pipeline_invocations
14
15   # The priority is based upon order of creation:
16   # first created -> highest priority.
17
18   # Sample of regular route:
19   #   match 'products/:id' => 'catalog#view'
20   # Keep in mind you can assign values other than :controller and :action
21
22   # Sample of named route:
23   #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
24   # This route can be invoked with purchase_url(:id => product.id)
25
26   # Sample resource route (maps HTTP verbs to controller actions automatically):
27   #   resources :products
28
29   # Sample resource route with options:
30   #   resources :products do
31   #     member do
32   #       get 'short'
33   #       post 'toggle'
34   #     end
35   #
36   #     collection do
37   #       get 'sold'
38   #     end
39   #   end
40
41   # Sample resource route with sub-resources:
42   #   resources :products do
43   #     resources :comments, :sales
44   #     resource :seller
45   #   end
46
47   # Sample resource route with more complex sub-resources
48   #   resources :products do
49   #     resources :comments
50   #     resources :sales do
51   #       get 'recent', :on => :collection
52   #     end
53   #   end
54
55   # Sample resource route within a namespace:
56   #   namespace :admin do
57   #     # Directs /admin/products/* to Admin::ProductsController
58   #     # (app/controllers/admin/products_controller.rb)
59   #     resources :products
60   #   end
61
62   # You can have the root of your site routed with "root"
63   # just remember to delete public/index.html.
64   # root :to => 'welcome#index'
65
66   # See how all your routes lay out with "rake routes"
67
68   # This is a legacy wild controller route that's not recommended for RESTful applications.
69   # Note: This route will make all actions in every controller accessible via GET requests.
70   # match ':controller(/:action(/:id(.:format)))'
71
72   namespace :orvos do
73     namespace :v1 do
74       match '/schema' => 'schema#show'
75       match '/nodes/:uuid/ping' => 'nodes#ping', :as => :ping_node
76       match '/links/from/:tail_uuid' => 'links#index', :as => :orvos_v1_links_from
77       match '/users/current' => 'users#current'
78       resources :collections
79       resources :links
80       resources :nodes
81       resources :pipelines
82       resources :pipeline_invocations
83       resources :specimens
84       resources :groups
85       resources :logs
86       resources :users
87       resources :jobs
88       resources :job_steps
89     end
90   end
91
92   # omniauth
93   match '/auth/:provider/callback', :to => 'user_sessions#create'
94   match '/auth/failure', :to => 'user_sessions#failure'
95
96   # Custom logout
97   match '/login', :to => 'user_sessions#login'
98   match '/logout', :to => 'user_sessions#logout'
99
100   # Send unroutable requests to an arbitrary controller
101   # (ends up at ApplicationController#render_not_found)
102   match '*a', :to => 'orvos/v1/links#render_not_found'
103
104   root :to => 'static#home'
105 end