title: Ordering of REST end points in JAX RS
body: <p>I have two REST end points, one to delete some data to all employees,and another to delete data for a specific employee by employee ID.</p>
  
  <p>These are the two methods :</p>
  
  <pre><code>@Path("/{empId}/data")
  @DELETE
  public Response deleteEmpDataa(@PathParam("empId") final String empId) { }
  
  @Path("/all/data")
  @DELETE
  public Response deleteAllData(){}
  </code></pre>
  
  <p>Now, when I want to delete all the employee data and make the query from postman chrome plugin</p>
  
  <p><code>http://localhost/rest/mymapping/all/data</code></p>
  
  <p>I expect it to call the second method <code>deleteAllData</code>. Instead it calls the first method with PathParam <code>all</code>.</p>
  
  <p><strong>Is this an ordering issue ? How do we fix this problem ?</strong></p>