Posted by mrevil@asvachin.eu
What steps will reproduce the problem?
WebIOPi version used? => rev 1243
Python version used? => 3.2
Here's a patch to that does the following:
It doesn't allow the HTTP response codes to be set though (other 2xx response codes, 404 etc. should be returned as appropriate to comply with the standards).
Also attached is a quick example of what this allows.
Files attached
Posted by trouch
Posted by trouch
I agree the REST API is not RESTfull But I cannot guarantee to integrate all your proposals.
Posted by trouch
Posted by trouch
Posted by trouch
Posted by mmackes
Macros that support a "HTTP GET" would help me in my integration of my WebIOPi project and OpenHAB. In OpenHAB connecting an item via a http binding can be done with "HTTP POST" but if you want to have the state of your item updated automatically that needs to happen via a "HTTP GET". For now I have hacked the rest.py file to support my needs until this change is implemented. Thanks.