src.main module¶
This module bootstraps the API setup and registers all of the available services.
-
src.main.
index
()¶ Displays the available services.
Returns: A dictionary of registered endpoints.
-
src.main.
page_not_found
(e)¶ Handles 404 errors experienced by the clients.
Parameters: e – The exception object Returns: The exception object
-
src.main.
register_services
(api)¶ Registers the available services with the Service Manager. New services should be registered inside this function.
Parameters: api (ServiceManager) – An instance of the Service Manager