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 @ 441:cbce1fd3b1b7

History | View | Annotate | Download (589 Bytes)

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.parent(:id => project.parent_id, :name => project.parent.name) unless project.parent.nil?
9
      
10
      render_api_custom_values project.visible_custom_field_values, api
11
      
12
      api.created_on  project.created_on
13
      api.updated_on  project.updated_on
14
    end
15
  end
16
end