Skip to content

Commit 7168511

Browse files
committed
fix data-api bug
1 parent 3b6ff46 commit 7168511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dss-data-api/dss-data-api-server/src/main/java/com/webank/wedatasphere/dss/data/api/server/restful/DSSDbApiConfigRestful.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public Message getApiDetail(@RequestParam("apiId") int apiId) {
115115
* @return
116116
*/
117117

118-
@RequestMapping(value ="/test/{path:[a-zA-Z0-9_]+}", method = RequestMethod.POST)
118+
@RequestMapping(value ="/test/{path:[a-zA-Z0-9_-]+}", method = RequestMethod.POST)
119119
public Message testApi(@Context HttpServletRequest request, @PathVariable("path") VariableString path, @RequestBody Map<String, Object> map) {
120120

121121
try {
@@ -138,7 +138,7 @@ public Message testApi(@Context HttpServletRequest request, @PathVariable("path"
138138
* @return
139139
*/
140140

141-
@RequestMapping(value ="/execute/{path:[a-zA-Z0-9_]+}", method = RequestMethod.POST)
141+
@RequestMapping(value ="/execute/{path:[a-zA-Z0-9_-]+}", method = RequestMethod.POST)
142142
public Message executeApi(@Context HttpServletRequest request, @PathVariable("path") VariableString path, @RequestBody Map<String, Object> map) {
143143
try {
144144
ApiExecuteInfo resJo = apiConfigService.apiExecute(path.getPath(), request, map);

0 commit comments

Comments
 (0)