productCategories
productCategories(locale: Locale! = FR): [PublicProductCategory!]!Informations d'appel
Arguments
| Paramètre | Type | Valeur par défaut | Statut |
|---|---|---|---|
| locale | Locale! | FR | Obligatoire |
Exemple de requête GraphQL
query GetProductCategories($locale: Locale!) {
productCategories(locale: $locale) {
id
name
label
}
}Exemple de variables
{
"locale": "FR"
}Payload JSON complet
{
"query": "query GetProductCategories($locale: Locale!) {\n productCategories(locale: $locale) {\n id\n name\n label\n }\n}",
"variables": {
"locale": "FR"
}
}Exemple cURL à tester
curl -X POST https://api.revclic.com/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"query": "query GetProductCategories($locale: Locale!) {\n productCategories(locale: $locale) {\n id\n name\n label\n }\n}",
"variables": {
"locale": "FR"
}
}'