wger icon indicating copy to clipboard operation
wger copied to clipboard

Insert Ingredient Api

Open cryptbrn opened this issue 1 month ago • 3 comments

Use case

Hi guys, i just thinking to improve flow of wger app to insert nutrition log, since not all of the food will be available in ingredient from celery fetched data, i think it will be better to have insert ingredient api, so it can implemented in mobile apps

Proposal

create new api to insert new ingredient

Additional Context

No response

cryptbrn avatar Nov 23 '25 11:11 cryptbrn

Hi!

Sorry, what do you mean by implemented in mobile apps? Did you want to add missing products from there? The reason things like e.g. the ingredient images are not uploadable by the user is simply scaling (and some quality assurance). What we should definitely do is point the user to the open food facts page if the product they were scanning or searching does not exist, so it can be added there and everybody else can profit from it.

(if you are running your own instance, you can add entries with python)

rolandgeider avatar Nov 23 '25 11:11 rolandgeider

Hi @rolandgeider , thank you for responding

yes i want to add my meals via app, but not all meals is registered in open food fact, sometimes its combination of many ingredient and traditional food that very specific to certain country, so i just thought to get estimation of my food via AI, and input it via app

(if you are running your own instance, you can add entries with python)

is it via python script ?

cryptbrn avatar Nov 23 '25 12:11 cryptbrn

I understand, till recently OFF was very France-centric, so there are still many countries that are underrepresented there. If you are interested, we could investigate adding the products to OFF via the app (and then back to ours, but that logic already exists)

is it via python script ?

yes, I meant that you could write a script to add the products directly to the database.

rolandgeider avatar Nov 23 '25 12:11 rolandgeider