title: RESTful API - URI Structure Advice
body: <p>I have REST API URL structure similar to:</p>
  
  <pre><code>/api/contacts                 GET          Returns an array of contacts
  /api/contacts/:id             GET          Returns the contact with id of :id
  /api/contacts                 POST         Adds a new contact and return it with an id added
  /api/contacts/:id             PUT          Updates the contact with id of :id
  /api/contacts/:id             PATCH        Partially updates the contact with id of :id
  /api/contacts/:id             DELETE       Deletes the contact with id of :id
  </code></pre>
  
  <p>My question is about:</p>
  
  <pre><code>/api/contacts/:id             GET
  </code></pre>
  
  <p>Suppose that in addition to fetching the contact by ID, I also want to fetch it by an unique alias.</p>
  
  <p>What should be URI structure be if I want to be able to fetch contact by either ID or Alias?</p>