spec update

This commit is contained in:
jableader 2025-11-01 16:05:06 +11:00
parent b75fee41c6
commit 1d60a3d925

View file

@ -226,7 +226,7 @@ Impact on existing routes (exact files to refactor):
- Create a new `APIRouter` for household-scoped routes, e.g., `household_router = APIRouter(prefix="/api/v1/households/{householdSlug}")`. - Create a new `APIRouter` for household-scoped routes, e.g., `household_router = APIRouter(prefix="/api/v1/households/{householdSlug}")`.
- Mounted a scoped helper endpoint and a new recipes v2 router under this prefix. - Mounted a scoped helper endpoint and a new recipes v2 router under this prefix.
- ✅ Recipes scoping: - ✅ Recipes scoping:
- Added `api/recipes_v2.py` providing `/api/v1/households/{householdSlug}/recipes` with list/get/create. - Added `api/recipes_v2.py` providing `/api/v1/households/{householdSlug}/recipes` with list/get/create/delete.
- Added scoped repo helpers in `recipes/repository.py` and exported via `recipes/__init__.py`. - Added scoped repo helpers in `recipes/repository.py` and exported via `recipes/__init__.py`.
- Tests in `tests/test_recipes_household_v2.py` validate isolation across households (PASS). - Tests in `tests/test_recipes_household_v2.py` validate isolation across households (PASS).
- ✅ Meals: Added `api/meals_v2.py` with: - ✅ Meals: Added `api/meals_v2.py` with: