2012-08-17 14:40:57 +01:00
|
|
|
json.project do |json|
|
2012-09-05 14:47:25 +01:00
|
|
|
json.(@project, :id, :name, :visibility, :description, :ancestry, :has_issues, :has_wiki,
|
2012-08-17 14:40:57 +01:00
|
|
|
:srpm_file_name, :srpm_content_type, :srpm_file_size, :srpm_updated_at, :default_branch, :is_package,
|
|
|
|
:average_build_time, :build_count)
|
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-08-17 14:40:57 +01:00
|
|
|
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-17 14:40:57 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
json.url api_v1_project_path(@project, :format => :json)
|