INNER CODE UNIT · Python
start_api_server
OWASP/Python-Honeypot · api/server.py:661
def start_api_server():
"""
start API server
Returns:
True
"""
# Starting the API
my_api_configuration = api_configuration()
api_access_key = my_api_configuration["api_access_key"]
api_access_without_key = my_api_configuration["api_access_without_key"]
write_to_api_console(
" * API access key: {0}\n".format(
api_access_key if not api_access_without_key else "NOT REQUIRED!"
)
)