Sha256: c7cf734897d49260f912388f3e3985afc3e448588d06640d0ffbab9d371f900f

Contents?: true

Size: 696 Bytes

Versions: 28

Compression:

Stored size: 696 Bytes

Contents

module Katello
  class Api::V2::DockerTagsController < Api::V2::ApiController
    apipie_concern_subst(:a_resource => N_("a docker tag"), :resource => "docker_tags")
    include Katello::Concerns::Api::V2::RepositoryContentController

    def index
      if params[:grouped]
        # group docker tags by name, repo, and product
        repos = Repository.readable
        repos = repos.in_organization(@organization) if @organization
        collection = Katello::DockerTag.in_repositories(repos).grouped

        respond(:collection => scoped_search(collection, "name", "DESC"))
      else
        super
      end
    end

    private

    def resource_class
      DockerTag
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
katello-3.3.2 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.3.1.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.3.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.3.0.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.3.0 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.3.0.rc2 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.3.0.rc1.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.3.0.rc1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.2.1.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.2.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.2.0 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.2.0.rc3 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.2.0.rc2 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.2.0.rc1.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.2.0.rc1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.1.0.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.1.0 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.1.0.rc2.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.0.2 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-3.1.0.rc1 app/controllers/katello/api/v2/docker_tags_controller.rb