diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 287b6b4ee..6983c5789 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -178,3 +178,7 @@ spring.datasource.db2.jdbc-url=jdbc:mysql://101.43.164.214:3306/wflow_pro?useUni spring.datasource.db2.driver-class-name=com.mysql.jdbc.Driver spring.datasource.db2.username=root spring.datasource.db2.password=JXJ@admin +#配置web页面入口 +magic-api.web=/xmgl/magic/web +#配置文件存储位置。当以classpath开头时,为只读模式 +magic-api.resource.location=classpath:magic diff --git a/src/main/resources/magic/data/magic-api/api/分组1/group.json b/src/main/resources/magic/data/magic-api/api/分组1/group.json new file mode 100644 index 000000000..704f7b503 --- /dev/null +++ b/src/main/resources/magic/data/magic-api/api/分组1/group.json @@ -0,0 +1,14 @@ +{ + "properties": {}, + "id": "3aae6c82d5724f0b99620c138bb55f3f", + "name": "分组1", + "type": "api", + "parentId": "0", + "path": "/xmgl", + "createTime": null, + "updateTime": 1713321466918, + "createBy": null, + "updateBy": null, + "paths": [], + "options": [] +} diff --git a/src/main/resources/magic/data/magic-api/api/分组1/test.ms b/src/main/resources/magic/data/magic-api/api/分组1/test.ms new file mode 100644 index 000000000..ee0209096 --- /dev/null +++ b/src/main/resources/magic/data/magic-api/api/分组1/test.ms @@ -0,0 +1,97 @@ +{ + "properties" : { }, + "id" : "3e06314558e44ef4ad244fb4b045ce7e", + "script" : null, + "groupId" : "3aae6c82d5724f0b99620c138bb55f3f", + "name" : "test", + "createTime" : null, + "updateTime" : 1713321417809, + "lock" : null, + "createBy" : null, + "updateBy" : null, + "path" : "/magic/test", + "method" : "GET", + "parameters" : [ ], + "options" : [ ], + "requestBody" : "", + "headers" : [ ], + "paths" : [ ], + "responseBody" : "{\n \"timestamp\": \"2024-04-17 10:33:32\",\n \"status\": 404,\n \"error\": \"Not Found\",\n \"message\": \"No message available\",\n \"path\": \"/xmgl/magic/test\"\n}", + "description" : null, + "requestBodyDefinition" : null, + "responseBodyDefinition" : { + "name" : "", + "value" : "", + "description" : "", + "required" : false, + "dataType" : "Object", + "type" : null, + "defaultValue" : null, + "validateType" : "", + "error" : "", + "expression" : "", + "children" : [ { + "name" : "timestamp", + "value" : "2024-04-17 10:12:58", + "description" : "", + "required" : false, + "dataType" : "String", + "type" : null, + "defaultValue" : null, + "validateType" : "", + "error" : "", + "expression" : "", + "children" : [ ] + }, { + "name" : "status", + "value" : "404", + "description" : "", + "required" : false, + "dataType" : "Integer", + "type" : null, + "defaultValue" : null, + "validateType" : "", + "error" : "", + "expression" : "", + "children" : [ ] + }, { + "name" : "error", + "value" : "Not Found", + "description" : "", + "required" : false, + "dataType" : "String", + "type" : null, + "defaultValue" : null, + "validateType" : "", + "error" : "", + "expression" : "", + "children" : [ ] + }, { + "name" : "message", + "value" : "No message available", + "description" : "", + "required" : false, + "dataType" : "String", + "type" : null, + "defaultValue" : null, + "validateType" : "", + "error" : "", + "expression" : "", + "children" : [ ] + }, { + "name" : "path", + "value" : "/xmgl/magic/test123", + "description" : "", + "required" : false, + "dataType" : "String", + "type" : null, + "defaultValue" : null, + "validateType" : "", + "error" : "", + "expression" : "", + "children" : [ ] + } ] + } +} +================================ +return 'Hello magic-api' \ No newline at end of file