mhmenon910 / basic_api_template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Why this application ? because default token based authentication has been removed from Devise-Library. This application uses token auth authentication, token which is created during user creation and stored in field called authentication_token, which is returned to mobile client if username/email and password matches.

Client uses returned token from server for future requests.

Basic API Application for mobile client, so obviously it uses token auth authentication.

Request using curl :

curl -X POST localhost:3000/api/1/sessions -H ‘Content-Type: application/json’ -d ‘{ “user”: { “password”: “12345678”, “email”: “admin@example.com” } }

To-Do (Pull-requests are welcome :-) )

*** Adding log-out feature for mobile-client.

*** Adding tests using Rspec Or Cuccumber.

About


Languages

Language:Ruby 86.2%Language:HTML 10.9%Language:CSS 1.5%Language:JavaScript 1.4%