Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: example product in API with code=example #6252

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

stephanegigandet
Copy link
Contributor

fixes #6250

This is to allow queries like https://de.openfoodfacts.org/api/v0/product/example to get back data from a sample product that can be different based on country or language.

The products are specified in Config_off.pm, I just put a few for testing purposes.

In practice it is very likely that we will put fake products with specific fake barcodes, so that we can get exactly the data we want for the onboarding of Smoothie.

@stephanegigandet stephanegigandet added the API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) label Jan 6, 2022
@stephanegigandet stephanegigandet requested a review from a team as a code owner January 6, 2022 14:37
@sonarcloud
Copy link

sonarcloud bot commented Jan 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@stephanegigandet stephanegigandet merged commit c0605a4 into main Jan 6, 2022
@stephanegigandet stephanegigandet deleted the example-product branch January 6, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow the API to request a sample product with code=example
2 participants