212
edits
(add intro and sample urls) |
(link to documentation) |
||
Line 2: | Line 2: | ||
Knowledge panels are json data that describe content to be displayed to the user. | Knowledge panels are json data that describe content to be displayed to the user. | ||
They are currently used on the [[Project Smoothie|new smoothie flutter application]] and | They are currently used on the [[Project Smoothie|new smoothie flutter application]] and on the [[Product Opener]] web platform. | ||
Introduction: https://openfoodfacts.github.io/openfoodfacts-server/introduction/knowledge-panels/ | |||
Reference documentation: https://openfoodfacts.github.io/openfoodfacts-server/reference/api/#get-/api/v2/product/-barcode--fields-knowledge_panels | |||
== Testing it == | == Testing it == | ||
Knowledge panels are already deployed for every body ! | |||
To see the knowledge panels jsons, use the [https://openfoodfacts.github.io/api-documentation/ api], that is, from a product page, you can add <code>/api/v2</code> before /product/, and append <code>fields=knowledge_panels</code> as query parameters. | To see the knowledge panels jsons, use the [https://openfoodfacts.github.io/api-documentation/ api], that is, from a product page, you can add <code>/api/v2</code> before /product/, and append <code>fields=knowledge_panels</code> as query parameters. | ||
Eg: http://world.openfoodfacts.org/api/v2/product/7804659650035/not-mayo-notco?fields=knowledge_panels | Eg: http://world.openfoodfacts.org/api/v2/product/7804659650035/not-mayo-notco?fields=knowledge_panels | ||
'''FIXME:''' eventually move this part of this to https://openfoodfacts.github.io/openfoodfacts-server/introduction/api/ | |||
== The flexibility of a static page ? == | == The flexibility of a static page ? == |
edits