title: Passing pageable (spring data) in post request
body: <p>I have a rest API server which has the following API.
  I have some other APIs, where i get pageable from <code>GET</code> requests. Here, I need to make a post request for passing the queryDto. So, I cannot pass the  <code>page=0?size=20</code> etc as url parameters. </p>
  
  <p>I would like to know how to pass pageable as JSON object to a <code>POST</code> request</p>
  
  <pre><code>@RequestMapping(value = "/internal/search", method = RequestMethod.POST)
  @ResponseStatus(HttpStatus.OK)
  @ResponseBody
  public ResponseList&lt;Object&gt; findObjects(@RequestBody QueryDto queryDto, Pageable pageable) {
      if (queryDto.isEmpty()) {
          throw new BadRequestException();
      }
  
      return someService.findObjectsByQuery(queryDto, pageable);
  }
  </code></pre>