dockerfiles added

This commit is contained in:
2025-11-06 13:39:42 +01:00
parent c004bcee24
commit e76cb3dc21
14 changed files with 663 additions and 20 deletions

View File

@@ -8,12 +8,12 @@ import httpx
logger = logging.getLogger(__name__)
def fetch_devices(api_base: str = "http://localhost:8001") -> list[dict]:
def fetch_devices(api_base: str) -> list[dict]:
"""
Fetch devices from the API Gateway.
Args:
api_base: Base URL of the API Gateway (default: http://localhost:8001)
api_base: Base URL of the API Gateway (e.g., "http://localhost:8001" or "http://api:8001")
Returns:
List of device dictionaries. Each device contains at least:
@@ -56,12 +56,12 @@ def fetch_devices(api_base: str = "http://localhost:8001") -> list[dict]:
return []
def fetch_layout(api_base: str = "http://localhost:8001") -> dict:
def fetch_layout(api_base: str) -> dict:
"""
Fetch UI layout from the API Gateway.
Args:
api_base: Base URL of the API Gateway (default: http://localhost:8001)
api_base: Base URL of the API Gateway (e.g., "http://localhost:8001" or "http://api:8001")
Returns:
Layout dictionary with structure: