title: Jax-RS overloading methods/paths order of execution
body: <p>I am writing an API for my app, and I am confused about how Jax-RS deals with certain scenarios</p>
  
  <p>For example, I define two paths:</p>
  
  <pre><code>@Path("user/{name : [a-zA-Z]+}")
  </code></pre>
  
  <p>and </p>
  
  <pre><code>@Path("user/me")
  </code></pre>
  
  <p>The first path that I specified clearly encompasses the second path since the regular expression includes all letters a-z. However, the program doesn't seem to have an issue with this. Is it because it defaults to the most specific path (i.e. /me and then looks for the regular expression)?</p>
  
  <p>Furthermore, what happens if I define two regular expressions as the path with some overlap. Is there a default method which will be called?</p>
  
  <p>Say I want to create three paths for three different methods:</p>
  
  <pre><code>@Path{"user/{name : [a-zA-Z]+}")
  @Path("user/{id : \\d+}")
  @Path("user/me")
  </code></pre>
  
  <p>Is this best practice/appropriate? How will it know which method to call?</p>
  
  <p>Thank you in advance for any clarification.</p>