socialforge/app/views/issue_categories/index.api.rsb

11 lines
436 B
Plaintext

api.array :issue_categories, api_meta(:total_count => @categories.size) do
@categories.each do |category|
api.issue_category do
api.id category.id
api.project(:id => category.project_id, :name => category.project.name) unless category.project.nil?
api.name category.name
api.assigned_to(:id => category.assigned_to_id, :name => category.assigned_to.name) unless category.assigned_to.nil?
end
end
end