title: Returning clients with post request using WebClient
body: <p>I have an API documentation. My goal using this doc make a post request to retrieve clients from external api using WebClient. Here the example of the request:</p>
  <pre><code>url: &quot;https//:anyurl.com&quot;
  {
    &quot;command&quot;: &quot;getClients&quot;
  }
  </code></pre>
  <p>Here how the response looks like:</p>
  <pre><code>{
      &quot;available&quot;: true,
      &quot;data&quot;: [
          {
             
              &quot;id&quot;: &quot;1&quot;,
              &quot;name&quot;: &quot;Some description&quot;,
              &quot;date&quot;: &quot;date&quot;,
          },
          {
           
              &quot;id&quot;: &quot;2&quot;,
              &quot;name&quot;: &quot;SomeName&quot;,
              &quot;date&quot;: &quot;date&quot;,
  
          }
      ]
  }
  </code></pre>
  <p>Here how I did by now:</p>
  <pre><code>public class Main {
      public static void main(String[] args) throws URISyntaxException {
  WebClient client = WebClient.create();
  MultiValueMap&lt;String, String&gt; bodyValues = new LinkedMultiValueMap&lt;&gt;();
  bodyValues.add(&quot;command&quot;, &quot;getClients&quot;);
  
      WebClient.ResponseSpec response = client.post()
              .uri(new URI(&quot;https//:anyurl.com&quot;))
              .header(&quot;token&quot;, &quot;myToken&quot;) //I have a header as well
              .contentType(MediaType.APPLICATION_JSON)
              .accept(MediaType.APPLICATION_JSON)
              .body(BodyInserters.fromFormData(bodyValues))
              .retrieve();
  
  
      System.out.println(response);
  }
  </code></pre>
  <p>The response class:</p>
  <pre><code>public class ClientList {
  
      
      private Boolean available;
      private List&lt;Clients&gt; data;
  
  }
  
  
  @Document(collection = &quot;clients&quot;)
  public class Clients {
  
      
      @Id
      private Long id;
      private String name;
      private Timestamp date;
  
  //getters and setters
  }
  </code></pre>
  <p>By now it returns nothing. Is there any solution?</p>