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

Implementation of v2 Search

Open Dwarfex opened this issue 4 years ago • 4 comments

What

  • As a new version of the Search API is developed, this Library should also implement the usage of it.

See: https://wiki.openfoodfacts.org/Open_Food_Facts_Search_API_Version_2

The existing Open Food Facts search API is outdated and hacky (it was built on top of the OFF web site search form and is unnecessarily convoluted) and does not support some of the requirements for the Project:Personalized_Search (in particular being able to retrieve a given set of products using their barcodes). We are thus creating a new Open Food Facts Search API Version 2 that will be simpler but also more powerful.

Part of

  • #39

Dwarfex avatar Aug 28 '20 07:08 Dwarfex

  • We now have https://search.openfoodfacts.org/docs, based on OpenAPI and Elastic Search @Dwarfex

teolemon avatar May 01 '24 08:05 teolemon

@teolemon Where the openapi.json file is generated ? I would like to fix it

Benoit382 avatar May 07 '24 23:05 Benoit382

Great 👍 It's located at https://github.com/openfoodfacts/search-a-licious

teolemon avatar May 08 '24 04:05 teolemon

The pull request is ready https://github.com/openfoodfacts/openfoodfacts-php/pull/62

Benoit382 avatar May 09 '24 11:05 Benoit382