rosa-build/app/views/api/v1/platforms/index.json.jbuilder

11 lines
345 B
Plaintext
Raw Normal View History

json.platforms @platforms do |platform|
2014-01-21 04:51:49 +00:00
json.partial! 'platform', platform: platform
json.partial! 'api/v1/shared/owner', owner: platform.owner
json.repositories platform.repositories do |repo|
json.(repo, :id, :name)
2014-01-21 04:51:49 +00:00
json.url api_v1_repository_path(repo.id, format: :json)
end
end
2014-01-21 04:51:49 +00:00
json.url api_v1_platforms_path(format: :json)