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 / show.api.rsb @ 1591:63650ae64bf2

History | View | Annotate | Download (885 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
  api.status      @project.status
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

    
15
  api.array :trackers do
16
    @project.trackers.each do |tracker|
17
      api.tracker(:id => tracker.id, :name => tracker.name)
18
    end
19
  end if include_in_api_response?('trackers')
20

    
21
  api.array :issue_categories do
22
    @project.issue_categories.each do |category|
23
      api.issue_category(:id => category.id, :name => category.name)
24
    end
25
  end if include_in_api_response?('issue_categories')
26
end