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 2022/03/30 15:44:19 UTC
[camel-kamelets] 04/08: Adding examples of bodies
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit bee79c1a9d877c81c68c1b4e67e71c3b7e866a60
Author: Maria Arias de Reyna <ar...@redhat.com>
AuthorDate: Tue Mar 29 10:53:16 2022 +0200
Adding examples of bodies
---
kamelets/salesforce-create-sink.kamelet.yaml | 2 ++
kamelets/salesforce-delete-sink.kamelet.yaml | 2 ++
kamelets/salesforce-update-sink.kamelet.yaml | 2 ++
3 files changed, 6 insertions(+)
diff --git a/kamelets/salesforce-create-sink.kamelet.yaml b/kamelets/salesforce-create-sink.kamelet.yaml
index 309a1d6..a1e40d2 100644
--- a/kamelets/salesforce-create-sink.kamelet.yaml
+++ b/kamelets/salesforce-create-sink.kamelet.yaml
@@ -32,6 +32,8 @@ spec:
description: |-
Creates an object in Salesforce. The body of the message must contain
the JSON of the salesforce object.
+
+ Example body: { "Phone": "555", "Name": "Antonia", "LastName": "Garcia" }
required:
- sObjectName
- clientId
diff --git a/kamelets/salesforce-delete-sink.kamelet.yaml b/kamelets/salesforce-delete-sink.kamelet.yaml
index 42b3441..5ea4ffc 100644
--- a/kamelets/salesforce-delete-sink.kamelet.yaml
+++ b/kamelets/salesforce-delete-sink.kamelet.yaml
@@ -32,6 +32,8 @@ spec:
description: |-
Removes an object from Salesforce. The body received must be a json
containing two keys: sObjectId and sObjectName.
+
+ Example body: { "sObjectId": "XXXXX0", "sObjectName": "Contact" }
required:
- clientId
- clientSecret
diff --git a/kamelets/salesforce-update-sink.kamelet.yaml b/kamelets/salesforce-update-sink.kamelet.yaml
index ad26cfd..10d14a9 100644
--- a/kamelets/salesforce-update-sink.kamelet.yaml
+++ b/kamelets/salesforce-update-sink.kamelet.yaml
@@ -34,6 +34,8 @@ spec:
JSON key-value pair for each property to update or a valid Salesforce
object. If using key-value pair, sObjectName and sObjectId must be
provided as parameters.
+
+ Example of key-value pair: { "Phone": "1234567890", "Name": "Antonia" }
required:
- clientId
- clientSecret