Auth
Resource Group ¶
login ¶
POST/auth/login
概要
emailとpasswordでログインを試みる。 成功した場合アクセストークンやらなんやらが返る。
Example URI
POST http://example.com/v1/auth/login
Request
Headers
Content-Type: application/json
Body
{
"email": "hoge@example.com",
"password": "h0g3Ho9e"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "メールアドレス"
},
"password": {
"type": "string",
"description": "パスワード"
}
},
"required": [
"email",
"password"
]
}
Response
200
Headers
Content-Type: application/json
Body
{
"auth_token": "4uThT0K3n"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"auth_token": {
"type": "string",
"description": "auth token"
}
}
}