Komei22 / rails-tutorial

rails-tutorialのsample_app作っていきます
0 stars 0 forks source link

[WIP] ユーザ認証 #102

Open Komei22 opened 7 years ago

Komei22 commented 7 years ago

概要

ユーザを認証するためのトークンを取得するAPI


POST https://example.com/api/auth
Headers:
  Accept: "application/json"
Params:
  email: "example@railstutorial.org"
  password: "foobar"

---

{
  "user": {
    "id": 1,
    "name": "Example User",
  },
  "token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

詳細

レビューポイント