app/views/katello/api/v2/repository_sets/show.json.rabl in katello-4.0.3 vs app/views/katello/api/v2/repository_sets/show.json.rabl in katello-4.1.0.rc1
- old
+ new
@@ -23,9 +23,31 @@
child :product => :product do
attributes :id, :name
end
end
+# For backwards compatibility with the original
+# ActivationKeys#product_contents
+
+child :content => :content do
+ attributes :id, :name, :label, :vendor, :content_type, :content_url, :gpg_url
+end
+
child @resource.repositories => :repositories do
attributes :id, :name, :arch
attributes :minor => :releasever
+end
+
+node :override do |pc|
+ pc.override
+end
+
+node :overrides do |pc|
+ pc.content_overrides.map do |override|
+ {:name => override.name, :value => override.computed_value}
+ end
+end
+
+node :enabled_content_override do |pc|
+ override = pc.enabled_content_override
+ override&.computed_value
end