feat(client): add get_station_recipes helper on APIClient
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user