From c90be16db4858ce1dcfdbedd96c72396982f0a46 Mon Sep 17 00:00:00 2001 From: Aman Bhardwaj Date: Fri, 14 Aug 2020 10:25:45 -0700 Subject: [PATCH] updating docs for multi pubsub (#745) --- howto/publish-topic/README.md | 2 +- reference/api/pubsub_api.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/howto/publish-topic/README.md b/howto/publish-topic/README.md index 665ff5ebe..03a650661 100644 --- a/howto/publish-topic/README.md +++ b/howto/publish-topic/README.md @@ -35,7 +35,7 @@ To deploy this into a Kubernetes cluster, fill in the `metadata` connection deta To publish a message to a topic, invoke the following endpoint on a Dapr instance: ```bash -curl -X POST http://localhost:3500/v1.0/publish/deathStarStatus \ +curl -X POST http://localhost:3500/v1.0/publish/pubsubName/deathStarStatus \ -H "Content-Type: application/json" \ -d '{ "status": "completed" diff --git a/reference/api/pubsub_api.md b/reference/api/pubsub_api.md index 1cf199982..2f94a60a5 100644 --- a/reference/api/pubsub_api.md +++ b/reference/api/pubsub_api.md @@ -8,7 +8,7 @@ Dapr guarantees at least once semantics for this endpoint. ### HTTP Request ```http -POST http://localhost:/v1.0/publish/ +POST http://localhost:/v1.0/publish// ``` ### HTTP Response codes @@ -23,10 +23,11 @@ Code | Description Parameter | Description --------- | ----------- daprPort | the Dapr port +pubsubname | the name of pubsub component. topic | the name of the topic ```shell -curl -X POST http://localhost:3500/v1.0/publish/deathStarStatus \ +curl -X POST http://localhost:3500/v1.0/publish/pubsubName/deathStarStatus \ -H "Content-Type: application/json" \ -d '{ "status": "completed"