title: "Invalid number of path parameters. Expected 0, was 3" error while passing the url parameters in rest api (rest-assured)
body: <p>Trying to test the rest api with rest-assured. Getting the error</p>
  
  <blockquote>
    <p>Invalid number of path parameters. Expected 0, was 3.</p>
  </blockquote>
  
  <pre><code>public class GetSociailDetails {
  
      @Test
      public void generateToken() {
  
          Map&lt;String,String&gt; userDetails = new HashMap&lt;&gt;();
  
          userDetails.put("msISDN", "1217071016");
          userDetails.put("messageSource", "TWITTER");
          userDetails.put("socialId", "168988132");
  
          given()
          .contentType("application/json")
  
          .pathParam("access_token", "LLRPqxvU1uoT8YSl8")
  
          .pathParam("pageNo", "1")
  
          .pathParam("order", "desc")
  
          .body(userDetails)
  
          .post("http://name.com/rest/crm/getdetails")
  
          .then()
  
          .statusCode(200);
  
      }
  
  }
  </code></pre>
  
  <p>Is there a different way to pass the url params in the rest api which is of POST method.</p>