feat(api): endpoint public /api/allergens (P4 optionnel) #71
No reviewers
Labels
No labels
auto-merge
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AcadeNice/corentin_wakdo#71
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/p4-api-allergens"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
- GET /api/allergens (public anonyme, lecture seule) : les 14 allergenes INCO (id/code/name) via App\Catalogue\AllergenRepository. CatalogueController::allergens (meme enveloppe {data,total} + present que les autres lectures catalogue). - La borne CONSERVE son JSON statique (data/allergens.json) : il porte les descriptions riches, absentes du schema allergen (code+name seulement). Le swap reste possible si les descriptions sont ajoutees cote API ; commentaire data.js maj. - Prix : decision confirmee -- centimes en stockage/API (price_cents), euros a l'affichage (state.formatPrice). Aucun changement de convention requis. - Test : AllergenReadDbTest (integration, vraie DB : les 14 INCO). 351 PHP verts, PHPStan L6 propre, /api/allergens verifie live (200, total 14, same-origin).