updating docs for multi pubsub (#745)

This commit is contained in:
Aman Bhardwaj 2020-08-14 10:25:45 -07:00 committed by GitHub
parent 40050a51ea
commit c90be16db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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: To publish a message to a topic, invoke the following endpoint on a Dapr instance:
```bash ```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" \ -H "Content-Type: application/json" \
-d '{ -d '{
"status": "completed" "status": "completed"

View File

@ -8,7 +8,7 @@ Dapr guarantees at least once semantics for this endpoint.
### HTTP Request ### HTTP Request
```http ```http
POST http://localhost:<daprPort>/v1.0/publish/<topic> POST http://localhost:<daprPort>/v1.0/publish/<pubsubname>/<topic>
``` ```
### HTTP Response codes ### HTTP Response codes
@ -23,10 +23,11 @@ Code | Description
Parameter | Description Parameter | Description
--------- | ----------- --------- | -----------
daprPort | the Dapr port daprPort | the Dapr port
pubsubname | the name of pubsub component.
topic | the name of the topic topic | the name of the topic
```shell ```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" \ -H "Content-Type: application/json" \
-d '{ -d '{
"status": "completed" "status": "completed"