FastAPI services
FastAPI is used for internal HTTP APIs and control services.
Minimal service
from fastapi import FastAPI
app = FastAPI()
@app.get("/health")
def health():
return {"status": "ok"}
Dependency injection
Prefer FastAPI dependencies for database sessions and authentication.