2013-07-17 13:35:36 +01:00
|
|
|
json.platforms @platforms do |platform|
|
|
|
|
json.partial! 'platform', :platform => platform
|
2012-10-19 15:24:28 +01:00
|
|
|
json.(platform, :platform_type, :visibility)
|
2012-10-17 13:35:56 +01:00
|
|
|
json.partial! 'api/v1/shared/owner', :owner => platform.owner
|
2013-07-17 13:35:36 +01:00
|
|
|
json.repositories platform.repositories do |repo|
|
|
|
|
json.(repo, :id, :name)
|
|
|
|
json.url api_v1_repository_path(repo.id, :format => :json)
|
2012-09-20 16:07:06 +01:00
|
|
|
end
|
2012-08-17 14:40:57 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
json.url api_v1_platforms_path(:format => :json)
|