This repository was archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Users
gedorinku edited this page Mar 9, 2018
·
3 revisions
GET /user
200 OK
Content-Type: application/json
{
"id": 1,
"name": "hoge",
"displayName": "ほげ",
"email": "[email protected]",
"authority": 0
}
authority
が0
のとき一般ユーザー、1
のときはadmin
GET /users/(name)
200 OK
Content-Type: application/json
{
"id": 1,
"name": "hoge",
"displayName": "ほげ",
"authority": 0
}
GET /users
200 OK
Content-Type: application/json
[
{
"id": 1,
"name": "hoge",
"displayName": "ほげ",
"authority": 0
},
{
"id": 2,
"name": "fuga",
"displayName": "ふが",
"authority": 0
}
]
指定されたメールアドレスにパスワードリセット用のリンクが送られる。
https://example.com/#/password_reset/:token
みたいな感じ。
例)
https://example.com/#/password_reset/2NtCy566TteESCFzyNlSpPYgxlu2q5vgWYXOdeoiJZTuxhqP
POST /password_reset
Content-Type: application/json
{
"email": "[email protected]"
}
204 No Content
トークンが有効か検証する。
GET /password_reset/:token
204 No Content
POST /password_reset/:token
Content-Type: application/json
{
"password": "new_password"
}
204 No Content