You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by al...@apache.org on 2022/03/14 04:49:09 UTC

[incubator-linkis] 01/05: fix error path

This is an automated email from the ASF dual-hosted git repository.

alexkun pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit f132146084739aca1d66d703d3f9b381a70087ce
Author: peacewong <wp...@gmail.com>
AuthorDate: Thu Mar 10 19:59:21 2022 +0800

    fix error path
---
 .../java/org/apache/linkis/entrance/restful/EntranceRestfulApi.java     | 2 +-
 .../org/apache/linkis/entrance/restful/EntranceRestfulRemote.scala      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/restful/EntranceRestfulApi.java b/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/restful/EntranceRestfulApi.java
index 0a02a80..1e48627 100644
--- a/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/restful/EntranceRestfulApi.java
+++ b/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/restful/EntranceRestfulApi.java
@@ -462,7 +462,7 @@ public class EntranceRestfulApi implements EntranceRestfulRemote {
     }
 
     @Override
-    @RequestMapping(path = "/killJobs", method = RequestMethod.POST)
+    @RequestMapping(path = "/{id}/killJobs", method = RequestMethod.POST)
     public Message killJobs(
             HttpServletRequest req,
             @RequestBody JsonNode jsonNode,
diff --git a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/restful/EntranceRestfulRemote.scala b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/restful/EntranceRestfulRemote.scala
index 62bb25b..9d9ddc5 100644
--- a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/restful/EntranceRestfulRemote.scala
+++ b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/restful/EntranceRestfulRemote.scala
@@ -45,7 +45,7 @@ trait EntranceRestfulRemote {
   @RequestMapping(value = Array("/entrance/{id}/log"), method = Array(RequestMethod.GET))
   def log(req: HttpServletRequest, @PathVariable("id") id: String): Message
 
-  @RequestMapping(value = Array("/entrance/killJobs"), method = Array(RequestMethod.POST))
+  @RequestMapping(value = Array("/entrance/{id}/killJobs"), method = Array(RequestMethod.POST))
   def killJobs(req: HttpServletRequest, @RequestBody jsonNode: JsonNode, @PathVariable("id") strongExecId: String): Message
 
   @RequestMapping(value = Array("/entrance/{id}/kill"), method = Array(RequestMethod.GET))

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org