Mock API Admin
Endpoints
Ads (data)
Images
Settings
GET
/v1/users/state
ユーザー状態の取得(グローバルヘッダ用) — auth:
required
Response served by default
200 — ユーザーの現在状態
401 — 認証エラー(401)。トークン検証段が返すもの。
500 — サーバ内部エラー(500)
Delay (ms, 0 = global default)
Status 200
ユーザーの現在状態
{ "user": { "id": "sample", "nickname": "sample", "point": 5400, "carrier": "docomo" }, "unread_notice_count": 5, "needs_consent": false, "is_birthday_period": false }
Insert image URL at cursor:
Status 401
認証エラー(401)。トークン検証段が返すもの。
Alternates (via
?_example=
): token_expired
{ "error_code": "UNAUTHORIZED", "message": "認証が必要です。" }
Insert image URL at cursor:
Status 500
サーバ内部エラー(500)
{ "error_code": "INTERNAL_ERROR", "message": "ただいま混雑しております。時間を置いて再度お試しください。" }
Insert image URL at cursor:
Save
Back
Reset to spec