Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
en:protocole_json [2017/03/20 11:23]
mifrey HTTP GET
en:protocole_json [2017/03/20 11:37]
mifrey [In url with HTTP GET]
Line 29: Line 29:
  
 That allows an external system that only supports HTTP GET to easily communicate to Calaos. That allows an external system that only supports HTTP GET to easily communicate to Calaos.
 +
 +==== HTML Page ====
 +
 +Calaos v3 includes a debug web page to test the POST and Websocket requests.  It allows to easily verify the format of the JSON data to send.
 +
 +We need first to activate the debug mode with following command:
 +<code>
 +calaos_config set debug_enabled true
 +</code>
 +or directly add it in the file ///etc/calaos/local_config.xml//.
 +
 +The page is then accessible from https://calaos_server_ip/debug/ or http://calaos_server_ip:5454/debug/ .
 +
 +{{ :fr:api_debug_html.png?nolink&600 |}}
  
 ==== Use the API with other languages ==== ==== Use the API with other languages ====