helloproclub / Epona

Authentication and Authorization example written in ruby on rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

How to Run

  • install Ruby (atleast v2.0)
  • install Rails (v5 or latest)
  • run command below
$ bundle install
$ rails db:migrade
$ rails server
  • the application will be run on port 3000

Post

/users

body: {
    "username": username,
    "name": name,
    "password": password,
    "password_confirmation": password,
    "email": email,
}

/auth/login

request:

body: {
    "email": email,
    "password": password,
}

Get

/users/

header: {
    "Authorization": _token_
}

About

Authentication and Authorization example written in ruby on rails


Languages

Language:Ruby 99.1%Language:HTML 0.9%