Closed hjbrock closed 9 years ago
Created #21 for integrating authentication into existing calls. The authentication utils are up and running. Login can be accomplished by using the call:
POST http://sportim.heroku.com/rest/login
with a JSON body of:
{
"login":
A token will be returned in the response:
{
"status": {
"code":200,
"message":""
},
"token":
ONLY USE THIS WITH AN SSL ENABLED ENDPOINT.
Users can be registered by POSTing a structure like the following to /rest/user
{ "login":"email here", "firstName":"first name", "lastName":"last name", "phone":"phone number", "password":"pwd" }
Create the utilities for creating and reading authentication tokens. Integrating these into the calls will be done in separate tickets.