...
GET {url}/localtrac/store-locator/businessCategories/{businessUuid} | |||
---|---|---|---|
Cette route renverra la liste des catégories de Store Locator, associées à l'entreprise. | |||
Requête | |||
En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Réponse (200) - Succès | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuid | Identifiant unique de la catégorie (uuid) dans LOCALTRAC . C'est l'uuid que vous devez utiliser pour toute autre demande de mise à jour de la catégorie. | ||
translations | Un tableau de traductions du nom de la catégorie. Pour le moment, seules les langues «en» et «fr» sont prises en charge. Les langues sont facultatives (la catégorie ne peut avoir qu'une seule langue). | ||
translations.en | Traduction anglaise du nom de la catégorie. | ||
translations.fr | Traduction francaise du nom de la catégorie. | ||
slug | Un tableau de slug pour les traductions du nom de la catégorie. (généré automatiquement lors de l'insertion / mise à jour de la catégorie). | ||
slug.en | Slug pour la traduction anlaise de la catégorie. | ||
Slug pour la traduction francaise de la catégorie. | |||
Réponse (403) - Accès interdit | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
|
...
POST {url}/localtrac/store-locator/businessCategories/{businessUuid} | |||
---|---|---|---|
This route will set the list of Cette route définira la liste des catégories de Store Locator categories, associated to business. (It will clear all the previous data and save the provided list), associées à l'entreprise. (Cela effacera toutes les données précédentes et enregistrera la liste fournie). | |||
Requête | |||
En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
categoriesArray of categories to save | Un tableau de catégories à enregistrer | ||
categories[0].uuid (optional) | Uuid of the category, received from GET route. If provided, category will be updated (translations will change, uuid stays the samede la catégorie, reçu de la route GET. Si elle est fournie, la catégorie sera mise à jour (les traductions changeront, uuid reste le même). | ||
categories[0].translations | Array of translations of the category. Only “en” and “fr” are supported now. | ||
categories[0].translations.en (optional) | English translation of the name | ||
categories[0].translations.fr (optional) | French translation of the name | ||
Réponse (200) - Succès | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (400) - Erreur de validationThis scenario happens if you sent any content who fails the minimum validation process. For instance, failing to provide translations will lead to the following result | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interditThis scenario happens if you sent non-existing uuid of the category | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interditThis scenario happens if you sent non-existing businessUuid | |||
Content-Type | application/json | ||
Body | |||
|
...