ユーザーをシステムにログインさせる
ユーザーをシステムにログインさせます。
GET https://petstore3.swagger.io/api/v3/user/login
例
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/user/login?username=文字列&password=文字列" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/user/login?username=文字列&password=文字列" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
レスポンス
| コード | 説明 |
|---|---|
| 200 | 操作成功 |
| 400 | 無効なユーザー名またはパスワードが指定されました |
| default | 予期せぬエラー |
レスポンス例
200: 操作成功
Response
{
"message": "logged in user session:abcdef12345"
}
ヘッダー
| 名前 | 説明 | タイプ |
|---|---|---|
X-Rate-Limit | ユーザーに許可されている1時間あたりの呼び出し回数。 | 整数 |
X-Expires-After | トークンの有効期限が切れる UTC 日時。 | 文字列 |
パラメータ
クエリパラメータ
| 名前 | タイプ | 説明 |
|---|---|---|
username | 文字列 | ログイン用のユーザー名。 |
password | 文字列 | 平文のログインパスワード。 |