Main FastAPI application for hier-config-api.
root()
async
Root endpoint.
Source code in hier_config_api/main.py
| @app.get("/")
async def root() -> dict[str, str]:
"""Root endpoint."""
return {
"message": "Hier-Config API",
"version": "0.1.0",
"docs": "/api/docs",
}
|
health()
async
Health check endpoint.
Source code in hier_config_api/main.py
| @app.get("/health")
async def health() -> dict[str, str]:
"""Health check endpoint."""
return {"status": "healthy"}
|