To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / projects / index.api.rsb @ 811:b4e59a60b447
History | View | Annotate | Download (607 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) if project.parent && project.parent.visible? |
| 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 |