Render to html

Render Html

Render item.html using jinja2 This is helper function to make thing easier while injecting facet_kp in off-server

GET
/render-to-html

Query Parameters

facet_tagFacet tag string

Facet tag string for the items to search in the database eg:- category etc.

value_tag?Value tag string

value tag string for the items to search in the database eg:-en:beers etc.

sec_facet_tag?secondary facet tag string

secondary facet tag string for the items to search in the database eg:-brand etc.

sec_value_tag?secondary value tag string

secondary value tag string for the items to search in the database eg:-lidl etc.

lang_code?language code string

To return knowledge panels in native language, default lang: en.

country?Country tag string

To return knowledge panels for specific country, ex: france or fr.

include?Panel name exclude list

a list of panel names to include, it is incompatible with exclude parameter. If neither include or exclude is provided, we display hunger_game and wikidata by default.

exclude?Panel name exclude list

a list of panel names to exclude, it is incompatible with include parameter

Response Body

curl -X GET "https://loading/render-to-html?facet_tag=string&value_tag=string&sec_facet_tag=string&sec_value_tag=string&lang_code=string&country=string&include=last_edits&exclude=last_edits"
"string"
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}