title: How to use Reactor (Spring WebClient) to do a repeat call?
body: <p>I am using Reactor (Spring5 WebClient)  as my reactive programming API. I have 2 REST endpoint to call. The result of the first one will be the parameter to the second one. For the second API, it will return a result with "hasMore" value. If this value is <strong>true</strong>, I should change the pagination parameters and call the second API again. The demo code is the following:</p>
  
  <pre><code> client.getApi1()
          .map(r -&gt; r.getResult())
          .flatMap(p -&gt; client.getApi2(p, 2(page size), 1(page start)))
          .subscribe(r -&gt; System.out.println(r.isHasmore()));
  </code></pre>
  
  <p>How to repeat calling the second API (getApi2) until "hasMore" is false. </p>
  
  <p>Besides, I need to change the parameters page size and page start</p>