ステータス別にペットを検索する
ステータスに基づいてペットを検索します。
GET https://petstore3.swagger.io/api/v3/pet/findByStatus
例
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
レスポンス
| コード | 説明 |
|---|---|
| 200 | 操作成功 |
| 400 | 無効な入力 |
| default | 予期せぬエラー |
レスポンス例
200: 操作成功
Response
[
{
"id": 210,
"name": "Krypto",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"文字列"
],
"tags": [
{
"id": 0,
"name": "文字列"
}
],
"status": "available"
}
]
パラメータ
クエリパラメータ
| 名前 | タイプ | 説明 |
|---|---|---|
status | 文字列 | 検索するペットのステータス。 デフォルト: available。使用可能な値: available、pending、sold。 |