Consultation Debug API

pd4ml debug configuration

Configure the debug option for the pd4ml template engine

GET/rest/debug/pd4ml/action
Query parameters param
Header auth-token: token from authentication
Header / Parameter tenant
Body None
Returns None
Required role KBA MANAGER
Managed errors 401: insufficient privileges

action can be

  • enableDownloadPrintedTemplate with param=true: the player will create a downloadable file with the pd4ml input. This option can be very useful to debug html generated in the kb.
  • enableDebugInfo with param=true: tells pd4ml to print extra debug informations in the logs
  • enablePrintTemplate with param=true: the player will print the pd4ml input in the logs (level=debug)

Don't forget to turn off this function calling the api with the same url and parameter=false.

Example request

curl 'http://localhost:8080/mwp/rest/debug/pd4ml/enableDebugInfo?param=true -H 'auth-token: 928c5455-e984-4211-b811-95fdf57a50f1.1d86309a-ff8b-48f5-8a0e-7c11bc932ba4 192.168.99.1'