Open teolemon opened 1 year ago
@monsieurtanuki the API doc has just been deployed by @raphael0202
@g123k @monsieurtanuki NutriPatrol is now live in production
Tickets only available to moderators Flagging available to everyone (logged-in) Flagging webviews by Valentin: A product https://nutripatrol.openfoodfacts.org/flag/product?barcode=3017620422003&source=web&flavor=off A image https://nutripatrol.openfoodfacts.org/flag/image?barcode=3017620422003&source=web&flavor=off&image_id=1
We can do it in two times, integrate as links to webviews, then integrate natively at a later point. All the more that integrations need to be done at several places, and that's some work: https://github.com/openfoodfacts/smooth-app/issues/5390
@teolemon I guess it would be easy for me to replicate for nutripatrol what was done for prices, on the off-dart level. Then Valentin could work on the Smoothie side. @g123k Would that be ok with you or would you like Valentin to work on both off-dart and Smoothie for nutripatrol?
@g123k ping
Oh, I hadn't understood that nutripatrol couldn't be used as an API for the moment (e.g. "Login with your OpenFoodFacts account" when I click on https://nutripatrol.openfoodfacts.org/flag/product?barcode=3017620422003&source=web&flavor=off and there's no matching API flag
entry).
@monsieurtanuki I'm not sure to understand, Nutripatrol can be used as API:
@raphael0202 Fair enough. I guess I clicked on the first link provided, which opened a HTML page.
Could you assign me this issue please ?
What
The new moderation tool is about to be deployed. Will update this as a backend is finalized https://nutripatrol.openfoodfacts.org/api/docs
Data Models
Flag: Represents a flag raised by a user on a product or image.
Ticket: Represents a ticket associated with a flag, containing details about the issue.
Additional Notes:
The client should support validation of user input and error handling.
Authentication mechanisms should be implemented to restrict access to specific functionalities.
PoC @raphael0202 + Valentin
https://github.com/openfoodfacts/nutripatrol https://github.com/openfoodfacts/nutripatrol/blob/main/app/api.py
Part of