2012-08-28 17:57:12 +01:00
|
|
|
json.project do |json|
|
|
|
|
json.(@project, :id, :name, :visibility)
|
|
|
|
json.owner do |json_owner|
|
|
|
|
json_owner.(@project.owner, :id, :name)
|
|
|
|
json_owner.type @project.owner_type
|
2012-09-27 14:41:02 +01:00
|
|
|
json_owner.url url_for(@project.owner)
|
2012-08-28 17:57:12 +01:00
|
|
|
end
|
|
|
|
json.url api_v1_project_path(@project, :format => :json)
|
|
|
|
end
|