def services(environ, start_response): """! Return all the namespaces and versions supported by this device. @param environ the WSGI environment variables @param start_response the WSGI response callback """ return wsgiutils.JsonResponse(get_engine().get_namespaces()).send(start_response)
def auth_info(environ, start_response): """! Returns information that may be necessary to properly authenticate to the device. @param environ the WSGI environment variables @param start_response the WSGI response callback """ return wsgiutils.JsonResponse(get_engine().get_auth_info()).send(start_response)
def token(environ, start_response): """! Generate an access token and return it to the client after validating the provided access code. @param environ the WSGI environment variables @param start_response the WSGI response callback """ return get_engine().handle_token_request(environ, start_response)