Werk #3726: WATO Web-API: Fixed default output format - using JSON as intended

Komponente Setup
Titel WATO Web-API: Fixed default output format - using JSON as intended
Datum 29.07.2016
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.2.8p6 1.4.0i1
Level Bedeutende Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

The WATO Web-API was using Python as default output format since version 1.2.8b8 and commit 36142e6d, which was not intended.

The API is able to output JSON and Python formated data, which can be toggled using the variable output_format=json or output_format=python. The default has now been changed back to be JSON.

In case you created scripts against this API since 1.2.8b8, did not use a JSON parser to load the data and used something like eval() in Python instead, you will have to change your scripts. You can either add the variable output_format=python or replace your eval() with json.loads() in Python.

Zur Liste aller Werks