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

12 lines
447 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)
2014-01-21 04:51:49 +00:00
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
2014-01-21 04:51:49 +00:00
json.url api_v1_project_path(project.id, format: :json)
2012-10-18 12:22:31 +01:00
end
2014-01-21 04:51:49 +00:00
json.url api_v1_advisory_path(advisory.advisory_id, format: :json)