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 / show.api.rsb @ 810:aaa26ccafb00
History | View | Annotate | Download (643 Bytes)
| 1 |
api.project do |
|---|---|
| 2 |
api.id @project.id |
| 3 |
api.name @project.name |
| 4 |
api.identifier @project.identifier |
| 5 |
api.description @project.description |
| 6 |
api.homepage @project.homepage |
| 7 |
api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible? |
| 8 |
|
| 9 |
render_api_custom_values @project.visible_custom_field_values, api |
| 10 |
|
| 11 |
api.created_on @project.created_on |
| 12 |
api.updated_on @project.updated_on |
| 13 |
|
| 14 |
api.array :trackers do |
| 15 |
@project.trackers.each do |tracker| |
| 16 |
api.tracker(:id => tracker.id, :name => tracker.name) |
| 17 |
end |
| 18 |
end if include_in_api_response?('trackers')
|
| 19 |
end |