@@ -1358,11 +1358,11 @@ else if (APIJSON_DELEGATE_ID.toLowerCase().equals(name.toLowerCase())) {
13581358 }
13591359 * </pre>
13601360 */
1361- @ PostMapping ("execute" )
1361+ @ PostMapping ("sql/ execute" )
13621362 public String execute (@ RequestBody String request , HttpSession session ) {
13631363 try {
13641364 if (Log .DEBUG == false ) {
1365- return DemoParser .newErrorResult (new IllegalAccessException ("非 DEBUG 模式下不允许调用 /execute !" )).toJSONString ();
1365+ return DemoParser .newErrorResult (new IllegalAccessException ("非 DEBUG 模式下不允许调用 /sql/ execute !" )).toJSONString ();
13661366 }
13671367
13681368 DemoVerifier .verifyLogin (session );
@@ -2035,39 +2035,39 @@ public void invokeMethod(@RequestBody String request, HttpServletRequest servlet
20352035
20362036 // 为 APIAuto, UnitAuto, SQLAuto 提供的后台 Headless 无 UI 测试转发接口 <<<<<<<<<<<<<<<<<<<<<<<<<<<
20372037
2038- @ GetMapping ("/ api/test/start" )
2038+ @ GetMapping ("api/test/start" )
20392039 public String startApiTest (HttpSession session ) {
20402040 //response.sendRedirect("http://localhost:3000/test/start");
20412041 long id = 100000 + Math .round (899999 *Math .random ());
20422042 DemoParser .KEY_MAP .put (String .valueOf (id ), session ); // 调这个接口一般是前端/CI/CD,调查询接口的是 Node,Session 不同 session.setAttribute("key", id);
20432043 return delegate ("http://localhost:3000/test/start?key=" + id , null , null , null , null , HttpMethod .GET , session );
20442044 }
2045- @ GetMapping ("/ api/test/status" )
2045+ @ GetMapping ("api/test/status" )
20462046 public String getApiTestStatus (@ RequestParam (value = "key" , required = false ) String key , HttpSession session ) {
20472047 //response.sendRedirect("http://localhost:3000/test/status");
20482048 DemoParser .KEY_MAP .remove (key );
20492049 return delegate ("http://localhost:3000/test/status" , null , null , null , null , HttpMethod .GET , session );
20502050 }
20512051
2052- @ GetMapping ("/ unit/test/start" )
2052+ @ GetMapping ("unit/test/start" )
20532053 public String startUnitTest (HttpSession session ) {
20542054 long id = 100000 + Math .round (899999 *Math .random ());
20552055 DemoParser .KEY_MAP .put (String .valueOf (id ), session ); // 调这个接口一般是前端/CI/CD,调查询接口的是 Node,Session 不同 session.setAttribute("key", id);
20562056 return delegate ("http://localhost:3001/test/start?key=" + id , null , null , null , null , HttpMethod .GET , session );
20572057 }
2058- @ GetMapping ("/ unit/test/status" )
2058+ @ GetMapping ("unit/test/status" )
20592059 public String getUnitTestStatus (@ RequestParam (value = "key" , required = false ) String key , HttpSession session ) {
20602060 DemoParser .KEY_MAP .remove (key );
20612061 return delegate ("http://localhost:3001/test/status" , null , null , null , null , HttpMethod .GET , session );
20622062 }
20632063
2064- @ GetMapping ("/ sql/test/start" )
2064+ @ GetMapping ("sql/test/start" )
20652065 public String startSQLTest (HttpSession session ) {
20662066 long id = 100000 + Math .round (899999 *Math .random ());
20672067 DemoParser .KEY_MAP .put (String .valueOf (id ), session ); // 调这个接口一般是前端/CI/CD,调查询接口的是 Node,Session 不同 session.setAttribute("key", id);
20682068 return delegate ("http://localhost:3002/test/start?key=" + id , null , null , null , null , HttpMethod .GET , session );
20692069 }
2070- @ GetMapping ("/ sql/test/status" )
2070+ @ GetMapping ("sql/test/status" )
20712071 public String getSQLTestStatus (@ RequestParam ("key" ) String key , HttpSession session ) {
20722072 DemoParser .KEY_MAP .remove (key );
20732073 return delegate ("http://localhost:3002/test/status" , null , null , null , null , HttpMethod .GET , session );
0 commit comments