API: handle functions with multiple arguments

This commit is contained in:
Johannes Kirschbauer
2024-05-26 18:04:49 +02:00
parent ed171f0264
commit ab656d5655
9 changed files with 85 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ log = logging.getLogger(__name__)
@dataclass
class MachineCreateRequest:
name: str
config: dict
config: dict[str, int]
@API.register