diff --git a/framework/sdk-parent/frontend/src/api/environment.js b/framework/sdk-parent/frontend/src/api/environment.js index c71f239a77..71091273bf 100644 --- a/framework/sdk-parent/frontend/src/api/environment.js +++ b/framework/sdk-parent/frontend/src/api/environment.js @@ -137,9 +137,9 @@ export function jsonGenerator(params) { export function getUserDefaultApiType() { if (currentModuleName === 'api') { - return get('/api/module/getUserDefaultApiType'); + return get('/api/module/default-type'); } - return get('/environment/relate/api/module/getUserDefaultApiType'); + return get('/environment/relate/api/module/default-type'); } export function getModuleByUrl(url) { diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/controller/EnvironmentRelateController.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/controller/EnvironmentRelateController.java index af87996e93..5481eb5224 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/controller/EnvironmentRelateController.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/environment/controller/EnvironmentRelateController.java @@ -25,7 +25,7 @@ public class EnvironmentRelateController { @PostMapping("/api/definition/list/batch") public Object listBatch(@RequestBody Object obj) { - return microService.postForData(MicroServiceName.API_TEST, "/api/definition/generator", obj); + return microService.postForData(MicroServiceName.API_TEST, "/api/definition/list/batch", obj); } @PostMapping("/api/testcase/list-blobs") @@ -38,9 +38,9 @@ public class EnvironmentRelateController { return microService.postForData(MicroServiceName.API_TEST, "/api/definition/generator", obj); } - @GetMapping("/api/module/getUserDefaultApiType") + @GetMapping("/api/module/default-type") public Object getUserDefaultApiType() { - return microService.getForData(MicroServiceName.API_TEST, "/api/module/getUserDefaultApiType/"); + return microService.getForData(MicroServiceName.API_TEST, "/api/module/default-type"); } @PostMapping("/api/definition/list/{goPage}/{pageSize}")