Actions
Defect #7098
closed"rest api: issues" wiki page contains invalid info about pages/limits
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2010-12-13
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
this page
http://www.redmine.org/projects/redmine/wiki/Rest_Issues
has invalid info about paging and pages limits.
"page" parameter is ignored. these urls have different "page" value:
http://academ:3000/issues.xml?project_id=testproject&query_id=2&page=0&per_page=100&key=01d7692c218a74d60d25d8eb5f62874a22ef8599
http://academ:3000/issues.xml?project_id=testproject&query_id=2&page=1&per_page=100&key=01d7692c218a74d60d25d8eb5f62874a22ef8599
- but return the same list of tasks with offset="0" attribute:
<?xml version="1.0" encoding="UTF-8"?><issues type="array" limit="25" total_count="50" offset="0">......
I had to read the trunk code to find out that "offset" and "limit" parameters must be used instead of "page" and "per_page".
this query works fine:
http://academ:3000/issues.xml?project_id=testproject&query_id=2&offset=0&limit=100&key=01d7692c218a74d60d25d8eb5f62874a22ef8599
I will update the Wiki page if I have permissions.
Updated by Alex Last over 14 years ago
- Status changed from New to Resolved
I was able to edit the wiki page:
http://www.redmine.org/wiki/redmine/Rest_Issues/diff?version=21&version_from=20&commit=View+differences
Updated by Alex Last over 14 years ago
oh, these params are not integrated into "stable 1.0 branch". I added a comment on the wiki page.
Updated by Etienne Massip over 13 years ago
- Category changed from Wiki to Documentation
- Status changed from Resolved to Closed
Actions