rosa-build/app/views/api/v1/projects/get_id.json.jbuilder

10 lines
291 B
Plaintext
Raw Normal View History

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)
end
json.url api_v1_project_path(@project, :format => :json)
end