ioBroker / ioBroker.simple-api

HTTP-API Interface to read and write objets and states
MIT License
41 stars 19 forks source link

[Bug] prettyPrint funktioniert nicht wie in der Doku angegeben #150

Closed BenAhrdt closed 1 year ago

BenAhrdt commented 2 years ago

Wenn man bspw. die toggle Funktion nutzt, so bekommt man bei der Nutzung wie in der Doku einen error ausgegeben.

Hier ein Link zur Stelle in der Doku: Toggle

Dort soll man die stateId und prettyPrint mit einem "&" trennen. Bspw. "toggle": "http://ipaddress:8087/toggle/stateID&prettyPrint" Dieses "&" wird aber anscheinend zur stateId hinzu gezählt. Wählt man wie bei set bspw. als Trennung ein "?", so funktioniert auch beim toggle das prettyPrint. "toggle": "http://ipaddress:8087/toggle/stateID?prettyPrint",

Apollon77 commented 2 years ago

Ja ? ist korekt, Doku ist falsch ... fixe ich