def server(host="0.0.0.0", port=RESTAPI_SERVER_PORT): """ REST-JSON API server """ global adminid global tasks adminid = hexencode(os.urandom(16)) tasks[adminid] = init_options() logger.info("running REST-JSON API server at '%s:%d'.." % (host, port)) logger.info("the admin task ID is: %s" % adminid) # Run RESTful API run(host=host, port=port, quiet=False, debug=False)
def restAPIRun(host="0.0.0.0", port=RESTAPI_SERVER_PORT): """ Run REST-JSON API """ run(host=host, port=port, quiet=False, debug=False)