From ca422db22803744756e91d9911de38fd143c0766 Mon Sep 17 00:00:00 2001 From: huangxiao <68590897+youngledo@users.noreply.github.com> Date: Mon, 4 Dec 2023 13:19:53 +0800 Subject: [PATCH] Make it more in line with the REST pattern. (#3879) --- .../com/netflix/conductor/rest/controllers/TaskResource.java | 2 +- .../netflix/conductor/rest/controllers/WorkflowResource.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rest/src/main/java/com/netflix/conductor/rest/controllers/TaskResource.java b/rest/src/main/java/com/netflix/conductor/rest/controllers/TaskResource.java index 1b1fe6b7a3..d9f818f448 100644 --- a/rest/src/main/java/com/netflix/conductor/rest/controllers/TaskResource.java +++ b/rest/src/main/java/com/netflix/conductor/rest/controllers/TaskResource.java @@ -184,7 +184,7 @@ public SearchResult searchV2( } @Operation(summary = "Get the external uri where the task payload is to be stored") - @GetMapping("/externalstoragelocation") + @GetMapping({"/externalstoragelocation", "external-storage-location"}) public ExternalStorageLocation getExternalStorageLocation( @RequestParam("path") String path, @RequestParam("operation") String operation, diff --git a/rest/src/main/java/com/netflix/conductor/rest/controllers/WorkflowResource.java b/rest/src/main/java/com/netflix/conductor/rest/controllers/WorkflowResource.java index 6652a1f573..263404b2de 100644 --- a/rest/src/main/java/com/netflix/conductor/rest/controllers/WorkflowResource.java +++ b/rest/src/main/java/com/netflix/conductor/rest/controllers/WorkflowResource.java @@ -270,7 +270,7 @@ public SearchResult searchWorkflowsByTasksV2( @Operation( summary = "Get the uri and path of the external storage where the workflow payload is to be stored") - @GetMapping("/externalstoragelocation") + @GetMapping({"/externalstoragelocation", "external-storage-location"}) public ExternalStorageLocation getExternalStorageLocation( @RequestParam("path") String path, @RequestParam("operation") String operation,