server.web.api ============== .. py:module:: server.web.api Attributes ---------- .. autoapisummary:: server.web.api.log Functions --------- .. autoapisummary:: server.web.api.app_lifespan server.web.api.get_app Module Contents --------------- .. py:data:: log .. py:function:: app_lifespan(app: fastapi.FastAPI) -> AsyncIterator[None] :async: Manage combined lifespan for all application resources. Manages: - Database engine lifecycle (creation on startup, disposal on shutdown) - OTLP graceful shutdown .. py:function:: get_app(versions: Optional[List[str]] = None) -> fastapi.FastAPI Get a FastAPI app based on the config. If no config is provided, defaults are used. :param versions: The versions of the API to include.