Project

General

Profile

REST API for Issues returns different results in a Browser and for CURL

Added by Alex Last over 13 years ago

I see issues.xml returns only 25 results (standard page size) when I use it from my Java program or via CURL:

C:\>curl -X GET "https://www.hostedredmine.com/issues.xml?project_id=taskconnector-test&query_id=40&key=293a64eef15b452047a0315ecc6eff2a9bbd4a9c" >out
.xml -D head --verbose -H "Accept: application/xml" -H "Content-Type: application/xml" --insecure

- 25 issues are loaded.

The same URL provided to a browser (I'm using Google Chrome) -
https://www.hostedredmine.com/issues.xml?project_id=taskconnector-test&query_id=40&key=293a64eef15b452047a0315ecc6eff2a9bbd4a9c
loads all issues, not just first 25.

is there some HTTP header I need to set in my GET request to get all issues?

Redmine's wiki page (http://www.redmine.org/wiki/redmine/Rest_Issues) mentions some "page" parameter without any useful explanation


Replies (2)

RE: REST API for Issues returns different results in a Browser and for CURL - Added by Jean-Philippe Lang over 13 years ago

The 'Objects per page options' can be set with high values but Redmine won't send all issues.
See #6140 for more information.

    (1-2/2)