feat(client): add get_station_recipes helper on APIClient

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-17 23:24:19 +02:00
parent 958f6ac0b0
commit a4a849920f
2 changed files with 21 additions and 0 deletions
+6
View File
@@ -131,5 +131,11 @@ class APIClient:
"detail": f"Errore di connessione al server: {str(e)}"
}
# --- Domain helpers ---
def get_station_recipes(self, station_code: str) -> dict[str, Any]:
"""Return the list of active recipes assigned to the given station."""
return self.get(f"/api/stations/by-code/{station_code}/recipes")
api_client = APIClient()