Skip to content

Commit

Permalink
Merge pull request #3551 from hhunter-ms/issue_3302
Browse files Browse the repository at this point in the history
[pub/sub cloudevents] Update `dapr publish` command
  • Loading branch information
hhunter-ms authored Jun 16, 2023
2 parents cbef49c + 098cff9 commit 4c82f65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ You can add additional fields to a custom CloudEvent that are not part of the of
Publish a CloudEvent to the `orders` topic:

```bash
dapr publish --publish-app-id orderprocessing --pubsub order-pub-sub --topic orders --data '{"specversion" : "1.0", "type" : "com.dapr.cloudevent.sent", "source" : "testcloudeventspubsub", "subject" : "Cloud Events Test", "id" : "someCloudEventId", "time" : "2021-08-02T09:00:00Z", "datacontenttype" : "application/cloudevents+json", "data" : {"orderId": "100"}}'
dapr publish --publish-app-id orderprocessing --pubsub order-pub-sub --topic orders --data '{\"orderId\": \"100\"}'
```

{{% /codetab %}}
Expand Down

0 comments on commit 4c82f65

Please sign in to comment.