Backend: kombinierter Einkaufslisten-Endpunkt /shopping-list/all
Liefert Produkte, Gruppen und Bedarfe je Lagerort in einem Aufruf - dieselben drei Quellen, die die Oberflaeche ohnehin zusammenfuehrt. Erspart API-Nutzern drei getrennte Requests. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -693,6 +693,14 @@ class LocationNeeds(BaseModel):
|
||||
groups: list[LocationNeedGroup] = []
|
||||
|
||||
|
||||
class ShoppingListAll(BaseModel):
|
||||
"""Komplette Einkaufsliste in einem Aufruf – dieselben drei Quellen, die auch
|
||||
die Oberfläche zusammenführt."""
|
||||
products: list[ShoppingItem] = []
|
||||
groups: list[GroupShoppingItem] = []
|
||||
by_location: list[LocationNeeds] = []
|
||||
|
||||
|
||||
class LocationContentEntry(BaseModel):
|
||||
"""Ein Artikel mit seinem Bestand an einem Lagerort (in Artikeleinheiten)."""
|
||||
product_id: int
|
||||
|
||||
Reference in New Issue
Block a user