##// END OF EJS Templates
Code cleanup....
Code cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5422 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r4372:5f57bceabbdc
r5302:6db0e8dcef0b
Show More
show.api.rsb
18 lines | 525 B | text/plain | TextLexer
Jean-Philippe Lang
Converts ProjectsController to use the new API template system....
r4342 api.project do
api.id @project.id
api.name @project.name
api.identifier @project.identifier
api.description @project.description
api.homepage @project.homepage
Jean-Philippe Lang
Fixed: error when serializing back objects with custom fields using ActiveResource (#6403)....
r4366 render_api_custom_values @project.visible_custom_field_values, api
Jean-Philippe Lang
Converts ProjectsController to use the new API template system....
r4342
api.created_on @project.created_on
api.updated_on @project.updated_on
api.array :trackers do
@project.trackers.each do |tracker|
api.tracker(:id => tracker.id, :name => tracker.name)
end
Jean-Philippe Lang
Makes some attributes optional in API response to get faster/lightweight responses....
r4372 end if include_in_api_response?('trackers')
Jean-Philippe Lang
Converts ProjectsController to use the new API template system....
r4342 end