rosa-build/app/views/api/v1/groups/index.json.jbuilder

11 lines
415 B
Plaintext
Raw Normal View History

json.groups @groups do |group|
2012-10-16 12:49:07 +01:00
json.(group, :id, :uname, :own_projects_count, :description)
json.created_at group.created_at.to_i
json.updated_at group.updated_at.to_i
2014-01-21 04:51:49 +00:00
json.partial! 'api/v1/shared/owner', owner: group.owner
2012-10-16 12:49:07 +01:00
json.avatar_url avatar_url(group, :big)
2014-01-21 04:51:49 +00:00
json.url api_v1_group_path(group.id, format: :json)
2012-10-16 12:49:07 +01:00
json.html_url group_path(group.uname)
end
2014-01-21 04:51:49 +00:00
json.url api_v1_groups_path(format: :json)