You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.api.rsb 803B

123456789101112131415161718192021
  1. api.array :projects, api_meta(:total_count => @project_count, :offset => @offset, :limit => @limit) do
  2. @projects.each do |project|
  3. api.project do
  4. api.id project.id
  5. api.name project.name
  6. api.identifier project.identifier
  7. api.description project.description
  8. api.homepage project.homepage
  9. api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible?
  10. api.status project.status
  11. api.is_public project.is_public?
  12. api.inherit_members project.inherit_members?
  13. render_api_custom_values project.visible_custom_field_values, api
  14. render_api_includes(project, api)
  15. api.created_on project.created_on
  16. api.updated_on project.updated_on
  17. end
  18. end
  19. end