Skip to content

Latest commit

 

History

History
39 lines (37 loc) · 545 Bytes

File metadata and controls

39 lines (37 loc) · 545 Bytes

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_
}