Obtenir l'inventaire des animaux de compagnie
Afficher les stocks de produits pour animaux de compagnie classés par statut.
GET https://petstore3.swagger.io/api/v3/store/inventory
Exemples
- 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>"
Réponses
| Code | Description |
|---|---|
| 200 | Opération réussie |
| default | Erreur inattendue |
Exemple de réponse
200: Opération réussie
Response
{
"sold": 0,
"available": 0,
"pending": 0
}
Paramètres
Aucun