メインコンテンツまでスキップ

ステータス別にペットを検索する

ステータスに基づいてペットを検索します。

GET https://petstore3.swagger.io/api/v3/pet/findByStatus

cURL
GET "https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"

レスポンス

コード説明
200操作成功
400無効な入力
default予期せぬエラー
レスポンス例

200: 操作成功

Response
[
{
"id": 210,
"name": "Krypto",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"文字列"
],
"tags": [
{
"id": 0,
"name": "文字列"
}
],
"status": "available"
}
]

パラメータ

クエリパラメータ
名前タイプ説明
status文字列検索するペットのステータス。
デフォルト: available
使用可能な値: availablependingsold