Revision 3dc3e938
Added by Adam Price almost 10 years ago
config/routes/api/v2.rb | ||
---|---|---|
api_resources :systems, :only => system_onlies do
|
||
get :report, :on => :collection
|
||
end
|
||
scope :constraints => Katello::RegisterWithActivationKeyConstraint.new do
|
||
match '/systems' => 'systems#activate', :via => :post
|
||
end
|
||
end
|
||
|
||
api_resources :errata, :only => [:index, :show]
|
||
... | ... | |
api_resources :systems, :only => system_onlies do
|
||
get :report, :on => :collection
|
||
end
|
||
scope :constraints => Katello::RegisterWithActivationKeyConstraint.new do
|
||
match '/systems' => 'systems#activate', :via => :post
|
||
end
|
||
end
|
||
|
||
api_resources :packages, :only => [:index, :show]
|
||
... | ... | |
put :remove_products
|
||
end
|
||
end
|
||
scope :constraints => Katello::RegisterWithActivationKeyConstraint.new do
|
||
match '/systems' => 'systems#activate', :via => :post
|
||
end
|
||
api_resources :systems, :only => [:create] do
|
||
get :report, :on => :collection
|
||
end
|
Also available in: Unified diff
fixes #5190 - adding annotations to deprecated routes, BZ 1102264