To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / projects / index.api.rsb @ 1531:ae8145b28b2b

History | View | Annotate | Download (632 Bytes)

1 119:8661b858af72 Chris
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 507:0c939c159af4 Chris
      api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible?
9 1517:dffacf8a6908 Chris
      api.status      project.status
10 909:cbb26bc654de Chris
11 119:8661b858af72 Chris
      render_api_custom_values project.visible_custom_field_values, api
12 909:cbb26bc654de Chris
13 119:8661b858af72 Chris
      api.created_on  project.created_on
14
      api.updated_on  project.updated_on
15
    end
16
  end
17
end