2012-08-17 14:40:57 +01:00
|
|
|
json.repository do |json|
|
2012-09-05 14:47:25 +01:00
|
|
|
json.(@repository, :id, :name, :description)
|
|
|
|
json.created_at @repository.created_at.to_i
|
|
|
|
json.updated_at @repository.updated_at.to_i
|
2012-08-17 14:40:57 +01:00
|
|
|
json.platform do |json_platform|
|
|
|
|
json_platform.(@repository.platform, :id, :name)
|
|
|
|
json_platform.url api_v1_platform_path(@repository.platform, :format => :json)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
json.url api_v1_repository_path(@repository, :format => :json)
|