Sha256: 914fdd3b20a83c770d29c7f2b2361746ee9d7e8b316448eac90b6b3d540c5a8d

Contents?: true

Size: 656 Bytes

Versions: 157

Compression:

Stored size: 656 Bytes

Contents

module Katello
  class Api::V2::AnsibleCollectionsController < Api::V2::ApiController
    resource_description do
      name 'Ansible Collections'
    end
    apipie_concern_subst(:a_resource => N_("an ansible collection"), :resource_id => "ansible_collections")
    include Katello::Concerns::Api::V2::RepositoryContentController

    def index
      sort_by, sort_order, options = sort_options
      options[:includes] = [:tags]
      respond(:collection => scoped_search(index_relation, sort_by, sort_order, options))
    end

    def default_sort
      %w(name asc)
    end

    private

    def repo_association
      :repository_id
    end
  end
end

Version data entries

157 entries across 157 versions & 1 rubygems

Version Path
katello-4.16.0 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.15.1 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.16.0.rc2 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.16.0.rc1 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.14.3 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.14.2 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.15.0 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.15.0.rc2 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.15.0.rc1 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.14.1 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.14.0 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.14.0.rc3 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.14.0.rc2 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.14.0.rc1.1 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.14.0.rc1 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.13.1 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.13.0 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.12.1 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.13.0.rc1 app/controllers/katello/api/v2/ansible_collections_controller.rb
katello-4.12.0 app/controllers/katello/api/v2/ansible_collections_controller.rb