Application entrypoint¶
app.main
¶
FastAPI application entrypoint.
HTTP routes are documented via OpenAPI (summary / description on
decorators, and the interactive UI at /docs when the API is running).
lifespan(app)
async
¶
Load the ontology into the process-wide store before serving requests.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app
|
FastAPI
|
FastAPI application (unused; required by the lifespan protocol). |
required |
Yields:
| Type | Description |
|---|---|
AsyncIterator[None]
|
Control to the running server until shutdown. |
Source code in src/backend/app/main.py
21 22 23 24 25 26 27 28 29 30 31 32 | |