Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Sessions

gedorinku edited this page Apr 1, 2018 · 4 revisions

目次

ログイン

リクエスト

POST /sessions/login
Content-Type: application/json
{
  "email": "[email protected]",
  "password": "hoge"
}

レスポンス

201 Created
Content-Type: application/json
{
  "token": "1234_BzrTPUtYrsY8FobzxM7ed5bo01zEA4jW"
}

🔒ログアウト

DELETE /sessions/logout
Authorization: Bearer (token)

レスポンス

204 No Content
Clone this wiki locally