Sha256: 1309aa0518cfee43e262ed1b125b39a54f88e093274f40c2c9abe8d332613a65

Contents?: true

Size: 708 Bytes

Versions: 3

Compression:

Stored size: 708 Bytes

Contents

object @resource

extends 'katello/api/v2/content_view_filters/base'

child :content_view => :content_view do
  extends "katello/api/v2/content_views/base"

  child :repositories => :repositories do
    attributes :id, :name, :label, :content_type

    child :product => :product do
      attributes :id, :name
    end

    node :content_counts do |repo|
      {
        :docker_manifest => repo.docker_manifests.count,
        :docker_tag => repo.docker_tags.count,
        :rpm => repo.rpms.count,
        :package => repo.rpms.count,
        :package_group => repo.package_groups.count,
        :erratum => repo.errata.count,
        :module_stream => repo.module_streams.count,
      }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katello-4.15.0 app/views/katello/api/v2/content_view_filters/show.json.rabl
katello-4.15.0.rc2 app/views/katello/api/v2/content_view_filters/show.json.rabl
katello-4.15.0.rc1 app/views/katello/api/v2/content_view_filters/show.json.rabl