Project

auth_api

0.0
No commit activity in last 3 years
No release in over 3 years
auth_api gem provides restful api for registration and authentication of users
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.1.7
~> 4.2.1
 Project Readme

AuthApi

This project rocks and uses MIT-LICENSE. Its provides restful api for registration and authentication of users. Response is JSON only. This engine supposed to support you backend application by providing authentication mechanism.

SETUP

add following line in Gemfile

gem 'auth_api'

run following commands in console

rails g auth_api
rake db:migrate

USE (SAMPLE CURL REQUEST)

to register a new user

curl http://yourdomain/your_path/register --data "name=test&password=password&email=abc@xyz.com" 

to authenticate an exising use

curl http://yourdomain/your_path/authenticate --data "password=password&email=abc@xyz.com" 

RESPONSE

response is always in JSON format and has two fields:

  • message: It contains user details or error message
  • success: true or false based on success or failure of your request