JSON RESTFul auth API with Json Web Token
curl
-X POST
-H 'Content-Type: application/json'
-d '{ "email":"<email>", "password":"<password>" }'
http://localhost:8080/users
curl
-X POST
-H 'Content-Type: application/json'
-d '{ "email":"<email>", "password":"<password>" }'
http://localhost:8080/sessions
curl
-H 'Authorization: Bearer <token>'
http://localhost:8080/sessions
curl
-X DELETE
-H 'Authorization: Bearer <token>'
http://localhost:8080/sessions