app/views/katello/api/v2/content_views/base.json.rabl in katello-3.2.1.1 vs app/views/katello/api/v2/content_views/base.json.rabl in katello-3.3.0.rc1
- old
+ new
@@ -3,12 +3,18 @@
attributes :composite
attributes :repository_ids
attributes :component_ids
attributes :default
-attributes :next_version
+attributes :force_puppet_environment
+attributes :version_count
+attributes :latest_version
+node :next_version do |content_view|
+ content_view.next_version.to_f.to_s
+end
+
node :last_published do |content_view|
unless content_view.versions.empty?
content_view.versions.last.created_at
end
end
@@ -60,15 +66,19 @@
child :environments => :environments do
attributes :id, :name, :label
end
child :content_view => :content_view do
- attributes :id, :name, :label, :description, :next_version
+ attributes :id, :name, :label, :description, :next_version, :latest_version
end
child :archived_repos => :repositories do
attributes :id, :name, :label, :description
end
+end
+
+child :content_view_components => :content_view_components do
+ extends "katello/api/v2/content_view_components/show"
end
child :activation_keys => :activation_keys do
attributes :id, :name
end