apps / winecellar / backend / app / api / routers / bins.py¶
Path: apps/winecellar/backend/app/api/routers/bins.py
Lane: apps
Executable: no/unknown
Purpose¶
Component: bins
Lane: apps
Path: apps/winecellar/backend/app/api/routers/bins.py
Role: FastAPI Router
Purpose: - Defines 2 function(s) used by neighboring modules. - Exposes API endpoints and request handlers through a FastAPI router.
Inputs: - HTTP request payloads/params handled through FastAPI routing. - Database sessions/queries executed through SQLAlchemy-related APIs.
Outputs: - Returns HTTP responses and status codes to API clients. - Creates/updates/queries database state via transaction boundaries.
Execution: - Request-driven execution when mounted into the backend FastAPI app.
Failure modes: - Request validation errors or missing required request fields. - Database connectivity/transaction failures during query or commit. - Type/shape mismatches passed into exported functions/classes.
Entry points¶
- No
__main__guard detected
Key symbols¶
Classes¶
- (none detected)
Functions¶
bins_summary(db)wines_in_bin(st_bin, db)
Configuration & environment¶
- (no env vars detected by regex)
Dependencies (imports)¶
__future__core.dbfastapischemas.binsservices.binssqlalchemy.ormtyping
Operational notes (fill in)¶
- Headless/interactive:
- Systemd unit (if any):
- Schedules/triggers:
- Debug artifacts:
- Failure modes: