From 12a2a8eaba8e6bac2c6e57465b01dafc5c987983 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Mon, 22 Jul 2024 17:24:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3Swagger=20url=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1044196 --user=王旭 【接口测试】接口定义-导入接口-Swagger url导入失败(特定URL) https://www.tapd.cn/55049933/s/1552349 --- .../api/controller/definition/ApiDefinitionController.java | 1 + .../src/main/java/io/metersphere/project/dto/ModuleDTO.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionController.java index 0c4f8bc06b..34b89ac5bc 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionController.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/definition/ApiDefinitionController.java @@ -310,6 +310,7 @@ public class ApiDefinitionController { } @PostMapping(value = "/export/{type}") + @Operation(summary = "接口测试-接口管理-导出接口定义") @RequiresPermissions(PermissionConstants.PROJECT_API_DEFINITION_EXPORT) public ApiExportResponse export(@RequestBody ApiDefinitionBatchRequest request, @PathVariable String type) { return apiDefinitionExportService.export(request, type, SessionUtils.getUserId()); diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/dto/ModuleDTO.java b/backend/services/project-management/src/main/java/io/metersphere/project/dto/ModuleDTO.java index 41583a1362..b9ef8ade79 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/dto/ModuleDTO.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/dto/ModuleDTO.java @@ -13,7 +13,7 @@ public class ModuleDTO implements Serializable { @Schema(description = "模块", allowableValues = {"workstation", "testPlan", "bugManagement", "caseManagement", "apiTest", "uiTest", "loadTest"}) private String module; - @Schema(description = "是否启用", allowableValues = {"true", "false"}) + @Schema(description = "是否启用", type = "boolean") private Boolean moduleEnable; public ModuleDTO(String module, Boolean moduleEnable) {