Sha256: f2e04481a6ba5ec1196014be518bc1208cfac33af68839b241fabf6b944431c4

Contents?: true

Size: 546 Bytes

Versions: 3

Compression:

Stored size: 546 Bytes

Contents

object @resource

extends "katello/api/v2/content_views/base"

attributes :content_host_count

node :errors do
  unless @resource.valid?
    attribute :messages => @resource.errors.full_messages
  end
end

child :duplicate_repositories_to_publish => :duplicate_repositories_to_publish do
  attributes :id, :name
  node :components do |repo|
    @resource.components_with_repo(repo).map do |component|
      {
        :content_view_name => component.content_view.name,
        :content_view_version => component.version,
      }
    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_views/show.json.rabl
katello-4.15.0.rc2 app/views/katello/api/v2/content_views/show.json.rabl
katello-4.15.0.rc1 app/views/katello/api/v2/content_views/show.json.rabl