config/routes/api/v2.rb in katello-3.5.2 vs config/routes/api/v2.rb in katello-3.6.0.rc1

- old
+ new

@@ -104,50 +104,69 @@ api_resources :content_view_versions, :except => [:create, :update] do member do post :promote post :export put :republish_repositories + get :available_errata, :controller => :errata end collection do get :auto_complete_search post :incremental_update end end api_resources :ostree_branches, :only => [:index, :show] do collection do get :auto_complete_search + get :compare end end + api_resources :debs, :only => [:index, :show] do + collection do + get :auto_complete_search + end + end + api_resources :docker_manifests, :only => [:index, :show] do collection do get :auto_complete_search + get :compare end end + api_resources :docker_manifest_lists, :only => [:index, :show] do + collection do + get :auto_complete_search + end + end + api_resources :docker_tags, :only => [:index, :show] do collection do get :auto_complete_search get :auto_complete_name + get :compare end end api_resources :environments, :only => [:index, :show, :create, :update, :destroy] do api_resources :activation_keys, :only => [:index, :create] api_resources :puppet_modules, :only => [:index] end api_resources :errata, :only => [:index, :show] do collection do - get :compare get :auto_complete_search + get :compare end end api_resources :gpg_keys, :only => [:index, :show, :create, :update, :destroy] do - post :content, :on => :member + member do + get :content + post :content, :action => :set_content + end get :auto_complete_search, :on => :collection end api_resources :host_collections, :only => [:index, :show, :create, :update, :destroy] do member do @@ -191,24 +210,27 @@ api_resources :packages, :only => [:index, :show] do collection do get :auto_complete_search get :auto_complete_name get :auto_complete_arch + get :compare end end api_resources :package_groups, :only => [:index, :show] do collection do get :auto_complete_search post :create delete :destroy + get :compare end end api_resources :files, :only => [:index, :show], :controller => 'file_units' do collection do get :auto_complete_search + get :compare end end api_resources :ping, :only => [:index] match "/status" => "ping#server_status", :via => :get @@ -227,11 +249,14 @@ put :disable end end end api_resources :puppet_modules, :only => [:index, :show] do - get :auto_complete_search, :on => :collection + collection do + get :auto_complete_search + get :compare + end end api_resources :repositories, :only => [:index, :create, :show, :destroy, :update] do collection do post :sync_complete @@ -298,10 +323,12 @@ 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 :puppet_modules, :only => [:index, :show] api_resources :docker_manifests, :only => [:index, :show] + api_resources :docker_manifest_lists, :only => [:index, :show] api_resources :docker_tags, :only => [:index, :show] + api_resources :debs, :only => [:index, :show] api_resources :ostree_branches, :only => [:index, :show] api_resources :content_uploads, :controller => :content_uploads, :only => [:create, :destroy, :update]