Class: Katello::Api::V2::AnsibleCollectionsController
- Inherits:
-
ApiController
- Object
- Api::V2::BaseController
- ApiController
- Katello::Api::V2::AnsibleCollectionsController
- Includes:
- Concerns::Api::V2::RepositoryContentController
- Defined in:
- app/controllers/katello/api/v2/ansible_collections_controller.rb
Instance Method Summary collapse
Methods inherited from ApiController
#check_katello_agent_not_disabled, #deprecate_katello_agent, #empty_search_query?, #full_result_response, #katello_agent_removal_release, #resource_class, #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
#default_sort ⇒ Object
15 16 17 |
# File 'app/controllers/katello/api/v2/ansible_collections_controller.rb', line 15 def default_sort %w(name asc) end |
#index ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/katello/api/v2/ansible_collections_controller.rb', line 9 def index sort_by, sort_order, = [:includes] = [:tags] respond(:collection => scoped_search(index_relation, sort_by, sort_order, )) end |