diff --git a/src/main/java/de/rwth/idsg/steve/web/api/TaskRestController.java b/src/main/java/de/rwth/idsg/steve/web/api/TaskRestController.java index 77a20a7df..f5a35e060 100644 --- a/src/main/java/de/rwth/idsg/steve/web/api/TaskRestController.java +++ b/src/main/java/de/rwth/idsg/steve/web/api/TaskRestController.java @@ -39,6 +39,7 @@ import org.springframework.web.bind.annotation.RestController; import jakarta.validation.Valid; +import org.springframework.web.bind.annotation.RequestParam; /** * @author fnkbsi @@ -118,7 +119,7 @@ public ApiTaskList clearFinished() { ) @GetMapping(value = "task") @ResponseBody - public ApiTaskInfo getTaskDetails(@Valid Integer taskId) { + public ApiTaskInfo getTaskDetails(@RequestParam(name="id") @Valid Integer taskId) { ApiTaskInfo taskInfo = new ApiTaskInfo(taskId, taskStore.get(taskId)); return taskInfo; }