Feature #6140 » 0001-Add-count-limit-and-page-to-REST-issues-request.patch
app/controllers/issues_controller.rb | ||
---|---|---|
72 | 72 |
end |
73 | 73 |
|
74 | 74 |
@issue_count = @query.issue_count |
75 |
@issue_limit = limit |
|
76 |
@issue_page = params['page'].nil? ? 0 : params['page'] |
|
75 | 77 |
@issue_pages = Paginator.new self, @issue_count, limit, params['page'] |
76 | 78 |
@issues = @query.issues(:include => [:assigned_to, :tracker, :priority, :category, :fixed_version], |
77 | 79 |
:order => sort_clause, |
app/views/issues/index.xml.builder | ||
---|---|---|
1 | 1 |
xml.instruct! |
2 |
xml.issues :type => 'array' do |
|
2 |
xml.issues :type => 'array', :count => @issue_count, :limit => @issue_limit, :page => @issue_page do
|
|
3 | 3 |
@issues.each do |issue| |
4 | 4 |
xml.issue do |
5 | 5 |
xml.id issue.id |