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