mirror of https://github.com/dapr/docs.git
Fix Configuration API unsubscribe endpoint (#2797)
* fix unsubscribe path Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com> * maintain punctuation uniformity Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com> * maintain punctuation uniformity Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com> * Update configuration_api.md Making examples consistent Signed-off-by: Mark Fussell <markfussell@gmail.com> Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com> Signed-off-by: Mark Fussell <markfussell@gmail.com> Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
parent
a70b666c9c
commit
1bbdb328bb
|
@ -141,7 +141,7 @@ This endpoint lets you unsubscribe to configuration changes.
|
|||
### HTTP Request
|
||||
|
||||
```
|
||||
GET http://localhost:<daprPort>/v1.0-alpha1/configuration/<subscription-id>/unsubscribe
|
||||
GET http://localhost:<daprPort>/v1.0-alpha1/configuration/<storename>/<subscription-id>/unsubscribe
|
||||
```
|
||||
|
||||
#### URL Parameters
|
||||
|
@ -149,6 +149,7 @@ GET http://localhost:<daprPort>/v1.0-alpha1/configuration/<subscription-id>/unsu
|
|||
Parameter | Description
|
||||
--------- | -----------
|
||||
`daprPort` | The Dapr port
|
||||
`storename` | The `metadata.name` field component file. Refer to the [component schema]({{< ref component-schema.md>}})
|
||||
`subscription-id` | The value from the `id` field returned from the response of the subscribe endpoint
|
||||
|
||||
#### Query Parameters
|
||||
|
@ -165,18 +166,22 @@ None
|
|||
|
||||
Code | Description
|
||||
---- | -----------
|
||||
`204` | Unsubscribe operation successful
|
||||
`200` | Unsubscribe operation successful
|
||||
`400` | Configuration store is missing or misconfigured or malformed request
|
||||
`500` | Failed to unsubscribe to configuration changes
|
||||
|
||||
#### Response Body
|
||||
|
||||
None
|
||||
```
|
||||
{
|
||||
"ok" : true
|
||||
}
|
||||
```
|
||||
|
||||
### Example
|
||||
|
||||
```shell
|
||||
curl -X GET 'http://localhost:3500/v1.0-alpha1/configuration/bf3aa454-312d-403c-af95-6dec65058fa2/unsubscribe'
|
||||
curl -X GET 'http://localhost:3500/v1.0-alpha1/configuration/mystore/bf3aa454-312d-403c-af95-6dec65058fa2/unsubscribe'
|
||||
```
|
||||
|
||||
## Optional application (user code) routes
|
||||
|
|
Loading…
Reference in New Issue