Hello,
I'm experiencing problem of raising upper pagination limit for Gitlab REST 
API. 
My installation is Omnibus Gitlab CE 8.8.4  (d4c3f17)
As it is said in official docs here 
http://doc.gitlab.com/ce/api/README.html#pagination, that per_page may be 
not more than 100, but for my use case (integration with external app) I 
need more than 100 items per page.

For example, the following request does not work as expected:

curl -vv -H "PRIVATE-TOKEN: ztCeaQ5CjfdEX-kYfzVs" 
"http://gitlab.xxx.com/api/v3/projects/1/issues?per_page=200&state=opened"; 
*   Trying 54.68.194.93...
* Connected to gitlab.xxx.com (54.68.194.93) port 80 (#0)
> GET /api/v3/projects/1/issues?per_page=200&state=opened HTTP/1.1
> Host: gitlab.xxx.com
> User-Agent: curl/7.43.0
> Accept: */*
> PRIVATE-TOKEN: ztCeaQ5CjfdEX-kYfzVs
> 
< HTTP/1.1 200 OK
< Server: nginx
< Date: Wed, 29 Jun 2016 21:35:12 GMT
< Content-Type: application/json
< Content-Length: 169119
< Connection: keep-alive
< Cache-Control: max-age=0, private, must-revalidate
< Etag: W/"233f6443ad3b53074078b52d667d87c2"
< Link: 
<http://gitlab.xxx.com/api/v3/projects/1/issues?id=1&page=2&per_page=100&state=opened>;
 rel="next", 
<http://gitlab.xxx.com/api/v3/projects/1/issues?id=1&page=1&per_page=100&state=opened>;
 rel="first", 
<http://gitlab.xxx.com/api/v3/projects/1/issues?id=1&page=2&per_page=100&state=opened>;
 rel="last"
< Status: 200 OK
< Vary: Origin
< X-Next-Page: 2
< X-Page: 1
< X-Per-Page: 100
< X-Prev-Page: 
< X-Request-Id: 1364cf7a-c952-4a30-9243-d98d0f27ab39
< X-Runtime: 3.248981
< X-Total: 189
< X-Total-Pages: 2



It returns only 100 items, regardless the value of per_page parameter. 

Any ways I can fix this in gitlab configuration or even patching Gitlab's 
ruby code itself?

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/575f932c-57e8-4a51-9c90-c9af5b7d0809%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to