الحصول على مخزون الحيوانات الأليفة
عرض قوائم جرد الحيوانات الأليفة مصنفة حسب الحالة.
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
}
المعلمات
لا شيء