config/routes/api/v2.rb in katello-4.2.0.1 vs config/routes/api/v2.rb in katello-4.2.1
- old
+ new
@@ -273,10 +273,19 @@
get :auto_complete_search
get :compare
end
end
+ Katello::RepositoryTypeManager.generic_content_types(false).each do |type|
+ api_resources type.pluralize.to_sym, :only => [:index, :show], :controller => 'generic_content_units', :content_type => type do
+ collection do
+ get :auto_complete_search
+ get :compare
+ end
+ end
+ end
+
match "/ping" => "katello_ping#index", :via => :get
match "/status" => "katello_ping#server_status", :via => :get
api_resources :products, :only => [:index, :show, :create, :update, :destroy] do
member do
@@ -390,10 +399,12 @@
api_resources :docker_manifest_lists, :only => [:index, :show]
api_resources :docker_tags, :only => [:index, :show]
api_resources :debs, :only => [:index, :show]
api_resources :module_streams, :only => [:index, :show]
api_resources :ansible_collections, :only => [:index, :show]
-
+ Katello::RepositoryTypeManager.generic_content_types(false).each do |type|
+ api_resources type.pluralize.to_sym, :only => [:index, :show], :controller => 'generic_content_units', :content_type => type
+ end
api_resources :ostree_branches, :only => [:index, :show]
api_resources :content_uploads, :controller => :content_uploads, :only => [:create, :destroy, :update]
member do