first api-interaction, fix auth_method unique-index

This commit is contained in:
Andreas Köpf
2022-12-22 18:41:50 +01:00
parent cad6a450c0
commit 8a48722e72
10 changed files with 172 additions and 43 deletions
+1 -1
View File
@@ -69,6 +69,6 @@ class ApiClient:
req = protocol_schema.TaskNAck(reason=reason)
return self.post(f"/api/v1/tasks/{task_id}/nack", req.dict())
def post_interaction(self, interaction: protocol_schema.Interaction) -> protocol_schema.TaskDone:
def post_interaction(self, interaction: protocol_schema.Interaction) -> protocol_schema.Task:
data = self.post("/api/v1/tasks/interaction", interaction.dict())
return self._parse_task(data)