config/routes/api/v2.rb in katello-3.1.0.1 vs config/routes/api/v2.rb in katello-3.2.0.rc1

- old
+ new

@@ -35,21 +35,20 @@ match '/product_content' => 'activation_keys#product_content', :via => :get match '/content_override' => 'activation_keys#content_override', :via => :put post :copy put :add_subscriptions put :remove_subscriptions - get :subscriptions end match '/releases' => 'activation_keys#available_releases', :via => :get, :on => :member api_resources :host_collections, :only => [:index] member do match '/host_collections' => 'activation_keys#add_host_collections', :via => :post match '/host_collections' => 'activation_keys#remove_host_collections', :via => :put match '/host_collections/available' => 'activation_keys#available_host_collections', :via => :get end api_resources :products, :only => [:index] - api_resources :subscriptions, :only => [] do + api_resources :subscriptions, :only => [:index] do collection do match '/available' => 'subscriptions#available', :via => :get end end api_resources :systems, :only => [:index] @@ -169,10 +168,11 @@ post :autoattach_subscriptions get :download_debug_certificate get :redhat_provider end api_resources :products, :only => [:index] + api_resources :repositories, :only => [:index] api_resources :subscriptions, :only => [:index] do collection do match '/available' => 'subscriptions#available', :via => :get get :auto_complete_search get :manifest_history @@ -194,10 +194,16 @@ collection do get :auto_complete_search end end + api_resources :files, :only => [:index, :show], :controller => 'file_units' do + collection do + get :auto_complete_search + end + end + api_resources :ping, :only => [:index] match "/status" => "ping#server_status", :via => :get api_resources :products, :only => [:index, :show, :create, :update, :destroy] do member do @@ -309,9 +315,10 @@ api_resources :packages, :only => [:index, :show] do get :search, :on => :collection end api_resources :package_groups, :only => [:index, :show] + api_resources :files, :only => [:index, :show], :controller => 'file_units' api_resources :errata, :only => [:index, :show], :constraints => {:id => /[0-9a-zA-Z\-\+%_.:]+/} api_resources :distributions, :only => [:index, :show], :constraints => {:id => /[0-9a-zA-Z \-\+%_.]+/} api_resources :puppet_modules, :only => [:index, :show] do get :search, :on => :collection end