rosa-build/app/views/api/v1/advisories/_advisory.json.jbuilder

12 lines
456 B
Plaintext
Raw Normal View History

2012-10-18 12:22:31 +01:00
json.id advisory.advisory_id
json.(advisory, :description)
json.platforms advisory.platforms do |platform|
json.(platform, :id, :released)
json.url api_v1_platform_path(platform.id, :format => :json)
2012-10-18 12:22:31 +01:00
end
json.projects advisory.projects do |project|
json.(project, :id, :name)
json.fullname project.name_with_owner
json.url api_v1_project_path(project.id, :format => :json)
2012-10-18 12:22:31 +01:00
end
json.url api_v1_advisory_path(advisory.advisory_id, :format => :json)