Sha256: cea4a0b359be65bcc20ac11b823d1371424d58881e1f3f257314ffa7539283a1

Contents?: true

Size: 642 Bytes

Versions: 33

Compression:

Stored size: 642 Bytes

Contents

module Katello
  class Api::V2::DockerManifestsController < Api::V2::ApiController
    apipie_concern_subst(:a_resource => N_("a docker manifest"), :resource => "docker_manifests")
    include Katello::Concerns::Api::V2::RepositoryContentController

    private

    def resource_class
      DockerManifest
    end

    def filter_by_content_view_filter(filter)
      resource_class.where(:uuid => filter.send("#{singular_resource_name}_rules").pluck(:uuid))
    end

    def custom_index_relation(collection)
      collection.includes(:docker_tags)
    end

    def default_sort
      lambda { |query| query.default_sort }
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
katello-3.10.2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.10.1.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.10.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.10.0 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.10.0.rc1.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.9.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.10.0.rc1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.9.0 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.8.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.9.0.rc2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.9.0.rc1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.7.1.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.7.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.8.0 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.8.0.rc3 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.8.0.rc2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.7.0 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.8.0.rc1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.7.0.rc2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.7.0.rc1 app/controllers/katello/api/v2/docker_manifests_controller.rb