openfoodfacts-server icon indicating copy to clipboard operation
openfoodfacts-server copied to clipboard

Document the Data Check API

Open teolemon opened this issue 2 years ago • 5 comments

Who for

  • power contributors

What

  • Document the Data Check API
  • <input type="checkbox" id="photos_and_data_checked" name="photos_and_data_checked">

Why

  • to allow us to know if someone checked the product recently

teolemon avatar Mar 23 '22 11:03 teolemon

Hello, @CharlesNepote I need guidance on how to start with this.

Dule-martins avatar May 05 '22 10:05 Dule-martins

When you edit a product, at the end of the page you will find a way to say "hey, I checked all the data and it's correct". Here is a screenshot: image

You can also do this thanks to the API. The issue is that it is not documented. So you have to add a new sub-section in the section 4. WRITE requests. The fact is I don't know how to send a "data checked" by the API. You will have to follow Perl code at https://github.com/openfoodfacts/openfoodfacts-server

Don't hesitate to make API tests with https://world.openfoodfacts.net dev server.

CharlesNepote avatar May 05 '22 10:05 CharlesNepote

Alright, I’ll be working on it soon. Will get back to you soon

On Thu, 5 May 2022 at 11:52, Charles Nepote @.***> wrote:

When you edit a product, at the end of the page you will find a way to say "hey, I checked all the data and it's correct". Here is a screenshot: [image: image] https://user-images.githubusercontent.com/562352/166907395-9748f9c8-10ba-47fd-93e0-a266a3c690dc.png

You can also do this thanks to the API. The issue is that it is not documented. So you have to add a new sub-section in the section 4. WRITE requests. The fact is I don't know how to send a "data checked" by the API. You will have to follow Perl code at https://github.com/openfoodfacts/openfoodfacts-server

Don't hesitate to make API tests with https://world.openfoodfacts.net dev server.

— Reply to this email directly, view it on GitHub https://github.com/openfoodfacts/openfoodfacts-server/issues/10187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH4ASUT7DLEII5V62COF3HLVIOR47ANCNFSM5RNXDGKA . You are receiving this because you commented.Message ID: @.***>

Dule-martins avatar May 05 '22 10:05 Dule-martins

Hello, @CharlesNepote I'm confused about what the new sub-section in 'Write Request' will be? is it a ' Get or Post request'?

Dule-martins avatar May 06 '22 18:05 Dule-martins

@teolemon and @CharlesNepote I need help to work on this?

Dule-martins avatar May 06 '22 18:05 Dule-martins