feat(api): add /api/stations router with CRUD and assignments

Implements the /api/stations FastAPI router (admin-only CRUD, recipe
assignment endpoints) and the public /by-code/{code}/recipes operator
endpoint. Registers the router in main.py and adds 8 integration tests.
This commit is contained in:
2026-04-17 22:37:16 +02:00
parent e8cd1f05aa
commit 338f21fba0
3 changed files with 276 additions and 0 deletions
+2
View File
@@ -20,6 +20,7 @@ from routers.settings import router as settings_router
from routers.reports import router as reports_router
from routers.statistics import router as statistics_router
from routers.setup import router as setup_router
from routers.stations import router as stations_router
@asynccontextmanager
@@ -71,6 +72,7 @@ app.include_router(settings_router)
app.include_router(statistics_router)
app.include_router(reports_router)
app.include_router(setup_router)
app.include_router(stations_router)
@app.get("/api/health")