2012-08-17 14:40:57 +01:00
|
|
|
json.projects @projects do |json, project|
|
2012-10-19 14:52:36 +01:00
|
|
|
json.partial! 'project', :project => project, :json => json
|
|
|
|
json.(project, :visibility, :description, :ancestry, :has_issues, :has_wiki, :default_branch, :is_package, :average_build_time)
|
2012-10-17 11:35:33 +01:00
|
|
|
json.created_at project.created_at.to_i
|
|
|
|
json.updated_at project.updated_at.to_i
|
2012-10-17 13:35:56 +01:00
|
|
|
json.partial! 'api/v1/shared/owner', :owner => project.owner
|
2012-08-17 14:40:57 +01:00
|
|
|
end
|
|
|
|
|
2012-10-17 11:35:33 +01:00
|
|
|
json.url api_v1_projects_path(:format => :json)
|