Added resources for api namespace
REST API expects JSON, refactored user.rb
Added REST API namespace, created controller for users
Users: GET,POST working
Added checkins controller for API
Added error status for rewards POST
Added error message on unknown user checkin
Code refactor
Added points_in_company model to DB
Refactored model name
POST on checkins creates/updates user points in company now
sucessful checkin POST now returns created points in JSON with 201 status created
Enhanced error message when user cannot be found by qr code
Found and fixed a bug when POSTing a checkin
Deleted unnecessary debug code
Heroku has a problem, trying to resolve it
Finally fixed POST checkin
Added nested JSON on POST
Added association through for user<->branch, created branches controller
Added api/branches funcionality