apollo-soft/skyrocket — pull request #11 by gching (2013-09-07 07:49:46+00:00)
Title: Api auth

Added authentication through an api specific controller for sessions in devise.

The api session login requires the following to be sent via JSON:
- email
- password
- school - lower case (ubc, sfu)

The specific link that the data needs to be sent to is (on a local server)
http://localhost:3000/api/v1/users/sign_in

To test using a console, turn on the rails server and use the curl command.

For example,

curl -X POST -H "Content-Type: application/json" -d '{"email":"admin@ubc.com","password":"password","school":"ubc"}' http://localhost:3000/api/v1/users/sign_in