Start of Product Attributes implementation, #4105 #4113
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For more background and details, please see #4105 and https://wiki.openfoodfacts.org/Product_Attributes
This is the start of the implementation of product attributes, that will be used by the new Flutter app and the personal search project.
This is an alpha phase. We will incrementally code and deploy the attributes. A lot of things may change as we add new attributes and use them in the new app (and possibly as a new function to personalize search results on the web site as well). To retrieve the attributes, they need to be explicitly requested (&fields=attributes_en) so it will not confuse existing apps.
Sample output:
https://fr.openfoodfacts.dev/api/v0/produit/3700214614266/chocolat-noir-perou-90-fruite-et-boise-alter-eco?fields=product_name,code,attributes_en