title: REST API & authentication (sign up / login)
body: <h2>Situation:</h2>
  
  <p>I'm creating REST API. It's quite simple, but there is a couple of things I don't understand:</p>
  
  <ol>
  <li>How to do authentication (what route is the best). I thought about these routes, but I don't know what is the best: <code>/api/v1/auth</code>, <code>/api/v1/user/auth</code></li>
  <li>I don't know what method to use (GET or POST)</li>
  <li>What about admins (I'll need a route to authenticate admins)</li>
  <li>What method it's better to use (GET or POST) for <code>/api/v1/signup</code>, <code>api/v1/login</code>. Or it's better to use <code>/api/v1/user/signup|login</code>.</li>
  </ol>
  
  <h2>PS:</h2>
  
  <p>I use in my examples <code>/api/v1/user - without s</code>, because I created routes:</p>
  
  <ol>
  <li>GET <code>/api/v1/users</code> - gives all users</li>
  <li>GET <code>/api/v1/users/:id</code> - gives user with particular id</li>
  </ol>
  
  <p>Am I right about this routes&amp;</p>