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

Allow setting prepared nutrition data through API #4773

Open
Tracked by #5523
stephanegigandet opened this issue Jan 19, 2021 · 2 comments
Open
Tracked by #5523

Allow setting prepared nutrition data through API #4773

stephanegigandet opened this issue Jan 19, 2021 · 2 comments
Labels
API WRITE WRITE API to allow sending product info and image Nutrition facts ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it.

Comments

@stephanegigandet
Copy link
Contributor

Related to #1151 which was implemented only for the web product edit form, and not for the API.

@stephanegigandet stephanegigandet added ✨ Feature Features or enhancements to Open Food Facts server Nutrition facts API WRITE WRITE API to allow sending product info and image labels Jan 19, 2021
@njean42
Copy link

njean42 commented Jan 19, 2021

I see basically two ways of doing this:

  1. add an extra parameter, like prepared=1;
  2. add _prepared to every nutriment_** parameter, as well as to nutrition_data_per (= 100g_prepared or serving_prepared), which would look like a product's JSON.

I guess the first option is easier/clearer, but I don't know my way around server internals.

@github-actions github-actions bot added the ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. label Apr 20, 2021
@teolemon teolemon removed the ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. label Jul 19, 2021
Copy link
Contributor

github-actions bot commented Feb 6, 2024

This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts

@github-actions github-actions bot added the ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it. label Feb 6, 2024
@teolemon teolemon moved this to To discuss and validate in 🍊 Open Food Facts Server issues Apr 23, 2024
@teolemon teolemon removed the ✨ Feature Features or enhancements to Open Food Facts server label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API WRITE WRITE API to allow sending product info and image Nutrition facts ⏰ Stale This issue hasn't seen activity in a while. You can try documenting more to unblock it.
Projects
Status: To discuss and validate
Development

No branches or pull requests

3 participants