2012-08-17 14:40:57 +01:00
|
|
|
json.project do |json|
|
2012-10-19 14:52:36 +01:00
|
|
|
json.partial! 'project', :project => @project, :json => json
|
2013-02-07 13:50:55 +00:00
|
|
|
json.(@project, :visibility, :description, :ancestry, :has_issues, :has_wiki, :default_branch, :is_package, :average_build_time, :publish_i686_into_x86_64)
|
2012-09-05 14:47:25 +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-10-17 11:35:33 +01:00
|
|
|
json.maintainer do |json_maintainer|
|
2012-10-17 13:46:19 +01:00
|
|
|
json.partial! 'api/v1/shared/member', :member => @project.maintainer, :tag => json_maintainer
|
2012-08-17 14:40:57 +01:00
|
|
|
end
|
2012-10-08 13:47:02 +01:00
|
|
|
json.repositories @project.repositories do |json_repos, repo|
|
|
|
|
json_repos.(repo, :id, :name)
|
|
|
|
json_repos.url api_v1_repository_path(repo.name, :format => :json)
|
|
|
|
json_repos.platform do |json_platform|
|
|
|
|
json_platform.(repo.platform, :id, :name)
|
|
|
|
json_platform.url api_v1_platform_path(repo.platform, :format => :json)
|
|
|
|
end
|
|
|
|
end
|
2012-10-17 11:35:33 +01:00
|
|
|
end
|