mirror of https://github.com/dapr/docs.git
updating docs for multi pubsub (#745)
This commit is contained in:
parent
40050a51ea
commit
c90be16db4
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue