##// END OF EJS Templates
Don't add the inclusion error when tracker is not set, the blank error is enough....
Don't add the inclusion error when tracker is not set, the blank error is enough. git-svn-id: http://svn.redmine.org/redmine/trunk@15492 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r13032:d30367d46bcf
r15110:90d14b71b365
Show More
index.api.rsb
36 lines | 1.8 KiB | text/plain | TextLexer
Jean-Philippe Lang
Restores object count and adds offset/limit attributes to API responses for paginated collections (#6140)....
r4375 api.array :issues, api_meta(:total_count => @issue_count, :offset => @offset, :limit => @limit) do
Jean-Philippe Lang
Converts IssuesController to use the new API template system and makes xml/json responses consistent (#6136)....
r4344 @issues.each do |issue|
Jean-Philippe Lang
Fixes indentation....
r4373 api.issue do
api.id issue.id
api.project(:id => issue.project_id, :name => issue.project.name) unless issue.project.nil?
api.tracker(:id => issue.tracker_id, :name => issue.tracker.name) unless issue.tracker.nil?
api.status(:id => issue.status_id, :name => issue.status.name) unless issue.status.nil?
api.priority(:id => issue.priority_id, :name => issue.priority.name) unless issue.priority.nil?
api.author(:id => issue.author_id, :name => issue.author.name) unless issue.author.nil?
api.assigned_to(:id => issue.assigned_to_id, :name => issue.assigned_to.name) unless issue.assigned_to.nil?
api.category(:id => issue.category_id, :name => issue.category.name) unless issue.category.nil?
api.fixed_version(:id => issue.fixed_version_id, :name => issue.fixed_version.name) unless issue.fixed_version.nil?
Jean-Philippe Lang
Converts IssuesController to use the new API template system and makes xml/json responses consistent (#6136)....
r4344 api.parent(:id => issue.parent_id) unless issue.parent.nil?
Toshi MARUYAMA
remove trailing white-spaces from app/views/issues/index.api.rsb...
r7138
Toshi MARUYAMA
replace tabs to spaces at app/views/issues/index.api.rsb...
r7242 api.subject issue.subject
Jean-Philippe Lang
Converts IssuesController to use the new API template system and makes xml/json responses consistent (#6136)....
r4344 api.description issue.description
Toshi MARUYAMA
replace tabs to spaces at app/views/issues/index.api.rsb...
r7242 api.start_date issue.start_date
api.due_date issue.due_date
api.done_ratio issue.done_ratio
Jean-Philippe Lang
Issue API: include is_private attribute in xml/json output (#10914)....
r13032 api.is_private issue.is_private
Jean-Philippe Lang
Converts IssuesController to use the new API template system and makes xml/json responses consistent (#6136)....
r4344 api.estimated_hours issue.estimated_hours
Toshi MARUYAMA
remove trailing white-spaces from app/views/issues/index.api.rsb...
r7138
Jean-Philippe Lang
Role-based issue custom field visibility (#5037)....
r11782 render_api_custom_values issue.visible_custom_field_values, api
Toshi MARUYAMA
remove trailing white-spaces from app/views/issues/index.api.rsb...
r7138
Jean-Philippe Lang
Converts IssuesController to use the new API template system and makes xml/json responses consistent (#6136)....
r4344 api.created_on issue.created_on
api.updated_on issue.updated_on
Jean-Philippe Lang
Adds closed_on to issues API responses (#824)....
r11181 api.closed_on issue.closed_on
Toshi MARUYAMA
remove trailing white-spaces from app/views/issues/index.api.rsb...
r7138
Jean-Philippe Lang
Ability to load relations on /issues API (#7366)....
r6193 api.array :relations do
issue.relations.each do |relation|
api.relation(:id => relation.id, :issue_id => relation.issue_from_id, :issue_to_id => relation.issue_to_id, :relation_type => relation.relation_type, :delay => relation.delay)
end
end if include_in_api_response?('relations')
Jean-Philippe Lang
Converts IssuesController to use the new API template system and makes xml/json responses consistent (#6136)....
r4344 end
end
end