diff --git a/backend/src/main/java/io/metersphere/api/controller/APITestController.java b/backend/src/main/java/io/metersphere/api/controller/APITestController.java index 82e9a2819f..b95c35cce8 100644 --- a/backend/src/main/java/io/metersphere/api/controller/APITestController.java +++ b/backend/src/main/java/io/metersphere/api/controller/APITestController.java @@ -47,10 +47,6 @@ public class APITestController { return apiTestService.getApiTestByProjectId(projectId); } - @GetMapping("/state/get/{testId}") - public ApiTest apiState(@PathVariable String testId) { - return apiTestService.getApiTestByTestId(testId); - } @PostMapping(value = "/schedule/update") public void updateSchedule(@RequestBody Schedule request) { diff --git a/backend/src/main/java/io/metersphere/api/service/APITestService.java b/backend/src/main/java/io/metersphere/api/service/APITestService.java index 44a25e32d9..13f41da08b 100644 --- a/backend/src/main/java/io/metersphere/api/service/APITestService.java +++ b/backend/src/main/java/io/metersphere/api/service/APITestService.java @@ -126,9 +126,6 @@ public class APITestService { return null; } - public ApiTest getApiTestByTestId(String testId) { - return apiTestMapper.selectByPrimaryKey(testId); - } public List getApiTestByProjectId(String projectId) { return extApiTestMapper.getApiTestByProjectId(projectId);