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

Expose an API route to expose Robotoff predictions for nutrition facts #987

Closed
teolemon opened this issue Nov 8, 2022 · 1 comment
Closed
Labels
API ✨ enhancement New feature or request nutrition prediction ⭐ top feature Top feature request. ⭐ top issue Top issue.

Comments

@teolemon
Copy link
Member

teolemon commented Nov 8, 2022

Problem

  • Expose an API route to expose Robotoff predictions for nutrition facts
  • The data is currently stored in the Prediction table.
  • A new route should be created to return the best prediction for a given product.

Related to

Part of

@raphael0202
Copy link
Collaborator

We can already use the /predictions route to get all nutrient predictions associated with a product:

https://robotoff.openfoodfacts.net/api/v1/predictions?types=nutrient&barcode=3017800502044

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API ✨ enhancement New feature or request nutrition prediction ⭐ top feature Top feature request. ⭐ top issue Top issue.
Development

No branches or pull requests

2 participants