Class: Katello::Api::V2::HostDebsController
- Inherits:
-
ApiController
- Object
- Api::V2::BaseController
- ApiController
- Katello::Api::V2::HostDebsController
- Includes:
- Concerns::FilteredAutoCompleteSearch
- Defined in:
- app/controllers/katello/api/v2/host_debs_controller.rb
Constant Summary
Constants included from Concerns::FilteredAutoCompleteSearch
Concerns::FilteredAutoCompleteSearch::PAGE_SIZE
Instance Method Summary collapse
Methods included from Concerns::FilteredAutoCompleteSearch
Methods inherited from ApiController
#check_katello_agent_not_disabled, #deprecate_katello_agent, #empty_search_query?, #full_result_response, #katello_agent_removal_release, #scoped_search, #skip_session
Methods included from Rendering
#respond_for_async, #respond_for_bulk_async, #respond_for_create, #respond_for_destroy, #respond_for_index, #respond_for_show, #respond_for_status, #respond_for_update, #respond_with_template, #respond_with_template_collection, #respond_with_template_resource, #try_specific_collection_template, #try_specific_resource_template
Methods included from Katello::Api::Version2
Instance Method Details
#index ⇒ Object
15 16 17 18 |
# File 'app/controllers/katello/api/v2/host_debs_controller.rb', line 15 def index collection = scoped_search(index_relation, :name, :asc, :resource_class => ::Katello::InstalledDeb) respond_for_index(:collection => collection) end |
#index_relation ⇒ Object
20 21 22 |
# File 'app/controllers/katello/api/v2/host_debs_controller.rb', line 20 def index_relation @host.installed_debs end |
#resource_class ⇒ Object
24 25 26 |
# File 'app/controllers/katello/api/v2/host_debs_controller.rb', line 24 def resource_class Katello::InstalledDeb end |