From 71cd3b07a24c69ef894157cf5b80f70c6bac8bb0 Mon Sep 17 00:00:00 2001 From: Yaron Schneider Date: Thu, 16 Jun 2022 15:22:30 -0700 Subject: [PATCH] Add mqtt metadata spec and fix sendgrid json sample (#2525) * add mqtt metadata spec and fix sendgrid json sample Signed-off-by: yaron2 * update phrasing Signed-off-by: yaron2 Co-authored-by: Mark Fussell --- .../supported-bindings/mqtt.md | 14 ++++++++++++++ .../supported-bindings/sendgrid.md | 2 ++ 2 files changed, 16 insertions(+) diff --git a/daprdocs/content/en/reference/components-reference/supported-bindings/mqtt.md b/daprdocs/content/en/reference/components-reference/supported-bindings/mqtt.md index c9f8c0add..7e047e72a 100644 --- a/daprdocs/content/en/reference/components-reference/supported-bindings/mqtt.md +++ b/daprdocs/content/en/reference/components-reference/supported-bindings/mqtt.md @@ -136,6 +136,20 @@ This component supports **output binding** with the following operations: - `create` +## Set topic per-request + +You can override the topic in component metadata on a per-request basis: + +```json +{ + "operation": "create", + "metadata": { + "topic": "myTopic" + }, + "data": "

Testing Dapr Bindings

This is a test.
Bye!" +} +``` + ## Related links - [Basic schema for a Dapr component]({{< ref component-schema >}}) diff --git a/daprdocs/content/en/reference/components-reference/supported-bindings/sendgrid.md b/daprdocs/content/en/reference/components-reference/supported-bindings/sendgrid.md index aba7d9b66..26769c88c 100644 --- a/daprdocs/content/en/reference/components-reference/supported-bindings/sendgrid.md +++ b/daprdocs/content/en/reference/components-reference/supported-bindings/sendgrid.md @@ -60,6 +60,7 @@ You can specify any of the optional metadata properties on the output binding re ```json { + "operation": "create", "metadata": { "emailTo": "changeme@example.net", "subject": "An email from Dapr SendGrid binding" @@ -67,6 +68,7 @@ You can specify any of the optional metadata properties on the output binding re "data": "

Testing Dapr Bindings

This is a test.
Bye!" } ``` + ## Related links - [Basic schema for a Dapr component]({{< ref component-schema >}})