From b62ce9009ff7378e1b33dc70bf37e97a7b5d2a08 Mon Sep 17 00:00:00 2001 From: fnkbsi <135032168+fnkbsi@users.noreply.github.com> Date: Fri, 6 Dec 2024 12:17:11 +0100 Subject: [PATCH] TaskRestController bugfix: adding @RequestParam(name = "id") to task path --- .../java/de/rwth/idsg/steve/web/api/TaskRestController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }