ペットの在庫を取得する
ステータス別に分類されたペットの在庫を返します。
GET https://petstore3.swagger.io/api/v3/store/inventory
例
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/store/inventory" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/store/inventory" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
レスポンス
| コード | 説明 |
|---|---|
| 200 | 操作成功 |
| default | 予期せぬエラー |
レスポンス例
200: 操作成功
Response
{
"sold": 0,
"available": 0,
"pending": 0
}
パラメータ
なし