Public Member Functions | |
| def | __init__ |
| def | addMacro |
| def | addRoute |
| def | findRoute |
| def | extract |
| def | getDeviceRoute |
| def | callDeviceFunction |
| def | do_GET |
| def | do_POST |
| def | getJSON |
Public Attributes | |
| device_mapping | |
| export | |
| routes | |
| macros | |
| def webiopi.protocols.rest.RESTHandler.addMacro | ( | self, | |
| macro | |||
| ) |
Definition at line 38 of file rest.py.
References webiopi.protocols.rest.RESTHandler.macros.
| def webiopi.protocols.rest.RESTHandler.addRoute | ( | self, | |
| source, | |||
| destination | |||
| ) |
Definition at line 41 of file rest.py.
References webiopi.protocols.rest.RESTHandler.routes.
| def webiopi.protocols.rest.RESTHandler.callDeviceFunction | ( | self, | |
| method, | |||
| path, | |||
data = None |
|||
| ) |
Definition at line 119 of file rest.py.
References webiopi.protocols.rest.RESTHandler.getDeviceRoute().
Referenced by webiopi.protocols.rest.RESTHandler.do_GET(), and webiopi.protocols.rest.RESTHandler.do_POST().
| def webiopi.protocols.rest.RESTHandler.do_GET | ( | self, | |
| relativePath, | |||
compact = False |
|||
| ) |
Definition at line 142 of file rest.py.
References webiopi.protocols.rest.RESTHandler.callDeviceFunction(), webiopi.protocols.rest.RESTHandler.device_mapping, webiopi.protocols.rest.RESTHandler.findRoute(), and webiopi.protocols.rest.RESTHandler.getJSON().
| def webiopi.protocols.rest.RESTHandler.do_POST | ( | self, | |
| relativePath, | |||
| data, | |||
compact = False |
|||
| ) |
| def webiopi.protocols.rest.RESTHandler.extract | ( | self, | |
| fmtArray, | |||
| pathArray, | |||
| args | |||
| ) |
Definition at line 57 of file rest.py.
References webiopi.protocols.rest.RESTHandler.extract().
Referenced by webiopi.protocols.rest.RESTHandler.extract(), and webiopi.protocols.rest.RESTHandler.getDeviceRoute().
| def webiopi.protocols.rest.RESTHandler.findRoute | ( | self, | |
| path | |||
| ) |
Definition at line 49 of file rest.py.
References webiopi.protocols.rest.RESTHandler.routes.
Referenced by webiopi.protocols.rest.RESTHandler.do_GET(), and webiopi.protocols.rest.RESTHandler.do_POST().
| def webiopi.protocols.rest.RESTHandler.getDeviceRoute | ( | self, | |
| method, | |||
| path | |||
| ) |
Definition at line 98 of file rest.py.
References webiopi.protocols.rest.RESTHandler.extract().
Referenced by webiopi.protocols.rest.RESTHandler.callDeviceFunction().
| def webiopi.protocols.rest.RESTHandler.getJSON | ( | self, | |
compact = False |
|||
| ) |
Definition at line 222 of file rest.py.
References webiopi.devices.digital.gpio.NativeGPIO.export, and webiopi.protocols.rest.RESTHandler.export.
Referenced by webiopi.protocols.rest.RESTHandler.do_GET().
| webiopi.protocols.rest.RESTHandler.device_mapping |
Definition at line 32 of file rest.py.
Referenced by webiopi.protocols.rest.RESTHandler.do_GET(), and webiopi.protocols.rest.RESTHandler.do_POST().
| webiopi.protocols.rest.RESTHandler.export |
Definition at line 33 of file rest.py.
Referenced by webiopi.protocols.rest.RESTHandler.getJSON().
| webiopi.protocols.rest.RESTHandler.macros |
Definition at line 35 of file rest.py.
Referenced by webiopi.protocols.rest.RESTHandler.addMacro(), and webiopi.protocols.rest.RESTHandler.do_POST().
| webiopi.protocols.rest.RESTHandler.routes |
Definition at line 34 of file rest.py.
Referenced by webiopi.protocols.rest.RESTHandler.addRoute(), and webiopi.protocols.rest.RESTHandler.findRoute().
1.8.8