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