Changes

Jump to navigation Jump to search
912 bytes added ,  11:14, 14 December 2021
add intro and sample urls
Line 1: Line 1:  
[[Category:Knowledge panels]]
 
[[Category:Knowledge panels]]
 +
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, as an experimental feature, on the [[Product Opener]] web platform.
 +
 +
== Testing it ==
 +
To test knowledge panels on the web application:
 +
 +
* if you are moderator, they are displayed so that you can report eventual bugs
 +
* if you are a normal user, you can add <code>?panels=1</code> at the end of the url (eg: http://world.openfoodfacts.org/product/7804659650035/not-mayo-notco?panels=1
 +
 +
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
    
== The flexibility of a static page ? ==
 
== The flexibility of a static page ? ==
229

edits

Navigation menu