Sha256: d5b97cdcb253ee6532137747d21fa48ab870ac31f415dbc66a9a49023eb943db

Contents?: true

Size: 566 Bytes

Versions: 9

Compression:

Stored size: 566 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
        collection = Katello::DockerTag.grouped
        respond(:collection => scoped_search(collection, "name", "DESC"))
      else
        super
      end
    end

    private

    def resource_class
      DockerTag
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-2.4.4 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-2.4.3 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-2.4.2 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-2.4.1 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-2.4.0 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-2.4.0.rc3 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-2.4.0.rc2 app/controllers/katello/api/v2/docker_tags_controller.rb
katello-2.4.0.rc1 app/controllers/katello/api/v2/docker_tags_controller.rb