This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch 2577-pipeline-element-templates-do-not-work
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to
refs/heads/2577-pipeline-element-templates-do-not-work by this push:
new ee197d402b fix(#2577): Fix endpoint to get PipelineElementTemplate
ee197d402b is described below
commit ee197d402b4abc320b62f0ea9dbd69d0f2754bc2
Author: Philipp Zehnder <[email protected]>
AuthorDate: Mon Mar 18 15:46:21 2024 +0100
fix(#2577): Fix endpoint to get PipelineElementTemplate
---
.../org/apache/streampipes/ps/PipelineElementTemplateResource.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/streampipes-platform-services/src/main/java/org/apache/streampipes/ps/PipelineElementTemplateResource.java
b/streampipes-platform-services/src/main/java/org/apache/streampipes/ps/PipelineElementTemplateResource.java
index db7d63fab9..996350573d 100644
---
a/streampipes-platform-services/src/main/java/org/apache/streampipes/ps/PipelineElementTemplateResource.java
+++
b/streampipes-platform-services/src/main/java/org/apache/streampipes/ps/PipelineElementTemplateResource.java
@@ -201,7 +201,7 @@ public class PipelineElementTemplateResource extends
AbstractRestResource {
@Parameter(description = "Overwrite the name and description of the
pipeline element with"
+ "the labels given in the pipeline element template")
- @RequestParam("overwriteNames") String overwriteNameAndDescription,
+ @RequestParam(value = "overwriteNames", defaultValue = "false", required
= false) String overwriteNameAndDescription,
@RequestBody(description = "The data processor invocation that should be
configured with the template contents",
content = @Content(schema = @Schema(implementation =
DataProcessorInvocation.class)))
@@ -231,7 +231,7 @@ public class PipelineElementTemplateResource extends
AbstractRestResource {
@Parameter(description = "Overwrite the name and description of the
pipeline element"
+ "with the labels given in the pipeline element template")
- @RequestParam("overwriteNames") String overwriteNameAndDescription,
+ @RequestParam(value = "overwriteNames", defaultValue = "false", required
= false) String overwriteNameAndDescription,
@RequestBody(description = "The adapter that should be configured with
the template contents",
content = @Content(schema = @Schema(implementation =
AdapterDescription.class)))