docs: add Agent API docs, OpenAPI field descriptions, and project context files

This commit is contained in:
Frank Schwenk
2026-09-22 14:57:16 +02:00
parent 88bdf6f34b
commit 644b2304b3
12 changed files with 1451 additions and 25 deletions
+7 -1
View File
@@ -57,7 +57,12 @@ async def lifespan(app: FastAPI):
yield
app = FastAPI(title="TakeYourMeds", version=settings.app_version, lifespan=lifespan)
app = FastAPI(
title="TakeYourMeds",
description="Persönliche Medikamenten-PWA mit Push-Erinnerungen, Einnahme-Logging und Agent-API.",
version=settings.app_version,
lifespan=lifespan,
)
app.add_middleware(CacheControlMiddleware)
# API routers
@@ -70,6 +75,7 @@ app.include_router(stats.router)
app.include_router(health.router)
app.include_router(agent.router)
# Backwards-compatible VAPID endpoint used by older clients
@app.get("/api/vapid-public-key")
async def vapid_public_key_legacy() -> JSONResponse: