def test_module() -> str: """ Checking if SCRAL is running. """ logging.debug(test_module.__name__ + " method called from: "+request.remote_addr) link = DOC[ENDPOINT_URL_KEY] + ":" + str(DOC[ENDPOINT_PORT_KEY]) deletes = posts = (URI_GPS_TAG_REGISTRATION,) puts = (URI_GPS_TAG_LOCALIZATION, URI_GPS_TAG_ALERT) gets = (URI_ACTIVE_DEVICES,) to_ret = util.to_html_documentation(DOC[MODULE_NAME_KEY], link, posts, puts, gets, deletes) return to_ret
def test_module() -> str: """ Checking if SCRAL is running. :return: A str containing some information about possible endpoints. """ logging.debug(test_module.__name__ + " method called from: " + request.remote_addr) link = DOC[ENDPOINT_URL_KEY] + ":" + str(DOC[ENDPOINT_PORT_KEY]) gets = (URI_ACTIVE_DEVICES, ) to_ret = util.to_html_documentation(DOC[MODULE_NAME_KEY], link, gets=gets) return to_ret
def test_module() -> str: """ Checking if SCRAL is running. :return: A str containing some information about possible endpoints. """ logging.debug(test_module.__name__ + " method called from: " + request.remote_addr) link = DOC[ENDPOINT_URL_KEY] + ":" + str(DOC[ENDPOINT_PORT_KEY]) deletes = posts = (URI_GLASSES_REGISTRATION, ) puts = (URI_GLASSES_LOCALIZATION, URI_GLASSES_INCIDENT) gets = (URI_ACTIVE_DEVICES, ) to_ret = util.to_html_documentation(DOC[MODULE_NAME_KEY], link, posts, puts, gets, deletes) return to_ret
def test_module() -> str: """ Checking if SCRAL is running. :return: A str containing some information about possible endpoints. """ logging.debug(test_module.__name__ + " method called from: " + request.remote_addr) to_ret = util.to_html_documentation( module_name=DOC[MODULE_NAME_KEY], link=DOC[ENDPOINT_URL_KEY] + ":" + str(DOC[ENDPOINT_PORT_KEY]), gets=(URI_ACTIVE_DEVICES, ), posts=(URI_WRISTBAND, ), deletes=(URI_WRISTBAND, ), puts=(URI_WRISTBAND_ASSOCIATION, URI_WRISTBAND_LOCALIZATION, URI_WRISTBAND_BUTTON)) return to_ret