@@ -1358,11 +1358,11 @@ else if (APIJSON_DELEGATE_ID.toLowerCase().equals(name.toLowerCase())) {
1358
1358
}
1359
1359
* </pre>
1360
1360
*/
1361
- @ PostMapping ("execute" )
1361
+ @ PostMapping ("sql/ execute" )
1362
1362
public String execute (@ RequestBody String request , HttpSession session ) {
1363
1363
try {
1364
1364
if (Log .DEBUG == false ) {
1365
- return DemoParser .newErrorResult (new IllegalAccessException ("非 DEBUG 模式下不允许调用 /execute !" )).toJSONString ();
1365
+ return DemoParser .newErrorResult (new IllegalAccessException ("非 DEBUG 模式下不允许调用 /sql/ execute !" )).toJSONString ();
1366
1366
}
1367
1367
1368
1368
DemoVerifier .verifyLogin (session );
@@ -2035,39 +2035,39 @@ public void invokeMethod(@RequestBody String request, HttpServletRequest servlet
2035
2035
2036
2036
// 为 APIAuto, UnitAuto, SQLAuto 提供的后台 Headless 无 UI 测试转发接口 <<<<<<<<<<<<<<<<<<<<<<<<<<<
2037
2037
2038
- @ GetMapping ("/ api/test/start" )
2038
+ @ GetMapping ("api/test/start" )
2039
2039
public String startApiTest (HttpSession session ) {
2040
2040
//response.sendRedirect("http://localhost:3000/test/start");
2041
2041
long id = 100000 + Math .round (899999 *Math .random ());
2042
2042
DemoParser .KEY_MAP .put (String .valueOf (id ), session ); // 调这个接口一般是前端/CI/CD,调查询接口的是 Node,Session 不同 session.setAttribute("key", id);
2043
2043
return delegate ("http://localhost:3000/test/start?key=" + id , null , null , null , null , HttpMethod .GET , session );
2044
2044
}
2045
- @ GetMapping ("/ api/test/status" )
2045
+ @ GetMapping ("api/test/status" )
2046
2046
public String getApiTestStatus (@ RequestParam (value = "key" , required = false ) String key , HttpSession session ) {
2047
2047
//response.sendRedirect("http://localhost:3000/test/status");
2048
2048
DemoParser .KEY_MAP .remove (key );
2049
2049
return delegate ("http://localhost:3000/test/status" , null , null , null , null , HttpMethod .GET , session );
2050
2050
}
2051
2051
2052
- @ GetMapping ("/ unit/test/start" )
2052
+ @ GetMapping ("unit/test/start" )
2053
2053
public String startUnitTest (HttpSession session ) {
2054
2054
long id = 100000 + Math .round (899999 *Math .random ());
2055
2055
DemoParser .KEY_MAP .put (String .valueOf (id ), session ); // 调这个接口一般是前端/CI/CD,调查询接口的是 Node,Session 不同 session.setAttribute("key", id);
2056
2056
return delegate ("http://localhost:3001/test/start?key=" + id , null , null , null , null , HttpMethod .GET , session );
2057
2057
}
2058
- @ GetMapping ("/ unit/test/status" )
2058
+ @ GetMapping ("unit/test/status" )
2059
2059
public String getUnitTestStatus (@ RequestParam (value = "key" , required = false ) String key , HttpSession session ) {
2060
2060
DemoParser .KEY_MAP .remove (key );
2061
2061
return delegate ("http://localhost:3001/test/status" , null , null , null , null , HttpMethod .GET , session );
2062
2062
}
2063
2063
2064
- @ GetMapping ("/ sql/test/start" )
2064
+ @ GetMapping ("sql/test/start" )
2065
2065
public String startSQLTest (HttpSession session ) {
2066
2066
long id = 100000 + Math .round (899999 *Math .random ());
2067
2067
DemoParser .KEY_MAP .put (String .valueOf (id ), session ); // 调这个接口一般是前端/CI/CD,调查询接口的是 Node,Session 不同 session.setAttribute("key", id);
2068
2068
return delegate ("http://localhost:3002/test/start?key=" + id , null , null , null , null , HttpMethod .GET , session );
2069
2069
}
2070
- @ GetMapping ("/ sql/test/status" )
2070
+ @ GetMapping ("sql/test/status" )
2071
2071
public String getSQLTestStatus (@ RequestParam ("key" ) String key , HttpSession session ) {
2072
2072
DemoParser .KEY_MAP .remove (key );
2073
2073
return delegate ("http://localhost:3002/test/status" , null , null , null , null , HttpMethod .GET , session );
0 commit comments