Revision 67e15119
Added by David Davis about 10 years ago
config/routes/api/v2.rb | ||
---|---|---|
match '/default_info/:informable_type/apply' => 'organization_default_info#apply_to_all', :via => :post, :as => :apply_default_info
|
||
|
||
api_resources :content_views, :only => [:index, :create]
|
||
api_resources :content_view_definitions, :only => [:index, :create]
|
||
api_resources :subscriptions, :only => [:index, :upload, :delete_manifest, :refresh_manifest, :show] do
|
||
collection do
|
||
post :upload
|
test/factories/content_view_factory.rb | ||
---|---|---|
sequence(:name) { |n| "Database#{n}" }
|
||
description "This content view is for database content"
|
||
association :organization, :factory => :katello_organization
|
||
|
||
trait :with_definition do
|
||
association :content_view_definition,
|
||
:factory => :katello_content_view_definition
|
||
end
|
||
|
||
factory :katello_content_view_with_definition, :traits => [:with_definition]
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
Content Views: Remove a few old references to content view defs