You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/05/10 12:58:56 UTC
[camel-kamelets] 01/04: Added Json Serialize Action
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch json-serialize-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit d236d3cf279860b63017914ffade07058c14c84b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 10 14:57:15 2021 +0200
Added Json Serialize Action
---
json-serialize-action.kamelet.yaml | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/json-serialize-action.kamelet.yaml b/json-serialize-action.kamelet.yaml
new file mode 100644
index 0000000..6caa9c4
--- /dev/null
+++ b/json-serialize-action.kamelet.yaml
@@ -0,0 +1,31 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: json-serialize-action
+ labels:
+ camel.apache.org/kamelet.type: "action"
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Actions"
+spec:
+ definition:
+ title: "Json Serialize Action"
+ description: "Serialize payload to JSON"
+ type: object
+ dependencies:
+ - "github:apache.camel-kamelets:camel-kamelets-utils:main-SNAPSHOT"
+ - "camel:kamelet"
+ - "camel:core"
+ - "camel:jackson"
+ flow:
+ from:
+ uri: kamelet:source
+ steps:
+ - marshal:
+ json:
+ library: Jackson
+ unmarshalTypeName: com.fasterxml.jackson.databind.JsonNode
+ - set-header:
+ name: "Content-Type"
+ constant: "application/json"