12 lines
449 B
Ruby
12 lines
449 B
Ruby
json.platforms @platforms do |json, platform|
|
|
json.partial! 'platform', :platform => platform, :json => json
|
|
json.(platform, :platform_type, :visibility)
|
|
json.partial! 'api/v1/shared/owner', :owner => platform.owner
|
|
json.repositories platform.repositories do |json_repos, repo|
|
|
json_repos.(repo, :id, :name)
|
|
json_repos.url api_v1_repository_path(repo.id, :format => :json)
|
|
end
|
|
end
|
|
|
|
json.url api_v1_platforms_path(:format => :json)
|