config/routes/api/v2.rb in katello-3.6.0.1.rc2 vs config/routes/api/v2.rb in katello-3.7.0.rc1
- old
+ new
@@ -52,10 +52,18 @@
match '/available' => 'subscriptions#available', :via => :get
end
end
end
+ api_resources :content_credentials, :only => [:index, :show, :create, :update, :destroy] do
+ member do
+ get :content
+ post :content, :action => :set_content
+ end
+ get :auto_complete_search, :on => :collection
+ end
+
match '/content_views/:composite_content_view_id/content_view_components' => 'content_view_components#index', :via => :get
match '/content_views/:composite_content_view_id/content_view_components/:id' => 'content_view_components#show', :via => :get
match '/content_views/:composite_content_view_id/content_view_components/add' => 'content_view_components#add_components', :via => :put
match '/content_views/:composite_content_view_id/content_view_components/remove' => 'content_view_components#remove_components', :via => :put
match '/content_views/:composite_content_view_id/content_view_components/:id' => 'content_view_components#update', :via => :put
@@ -241,10 +249,11 @@
end
collection do
get :auto_complete_search
end
api_resources :repository_sets, :only => [:index, :show] do
+ get :auto_complete_search, :on => :collection
member do
get :available_repositories
put :enable
put :disable
end
@@ -267,10 +276,11 @@
put :republish
end
end
api_resources :repository_sets, :only => [:index, :show] do
+ get :auto_complete_search, :on => :collection
member do
put :enable
put :disable
end
end
@@ -303,9 +313,15 @@
api_resources :subscriptions, :only => [:index, :upload, :delete_manifest, :refresh_manifest, :show] do
collection do
post :upload
post :delete_manifest
put :refresh_manifest
+ end
+ end
+ api_resources :upstream_subscriptions, only: [:index, :create] do
+ collection do
+ delete :destroy
+ put :update
end
end
end
api_resources :host_collections