title: GitLab API pagination with RestAssured. How to get all pages in one response?
body: <p>I try to get all issues from GitLab API.
  GitLab API allows to get issues with pagination, but a maximum of 100 per page:</p>
  <p><a href="https://docs.gitlab.com/ee/api/README.html#pagination" rel="nofollow noreferrer">https://docs.gitlab.com/ee/api/README.html#pagination</a></p>
  <p>As I see I can parse the <code>x-next-page</code> header and return the <code>List&lt;Response&gt;</code> in the result, but it will be better to get all pages in one response.</p>
  <p>I found I can use the <code>pagination=keyset</code> parameter but it not helps, I still get 100 issues per page. My attempt:</p>
  <pre class="lang-java prettyprint-override"><code>        return RestAssured.given()
                  .log().all()
                  .accept(&quot;json&quot;)
                  .header(&quot;PRIVATE-TOKEN&quot;, TOKEN)
                  .queryParam(STATE, &quot;opened&quot;)
                  .queryParam(&quot;pagination&quot;, &quot;keyset&quot;)
                  .queryParam(&quot;per_page&quot;, &quot;100&quot;)
                  .when().get(url)
                  .then()
                  .extract()
                  .response();
  </code></pre>