mirror of https://github.com/dapr/docs.git
Merge branch 'v1.8' of https://github.com/dapr/docs into v1.8
This commit is contained in:
commit
f715a03dcc
|
@ -21,7 +21,7 @@ GET http://localhost:<daprPort>/v1.0-alpha1/configuration/<storename>
|
|||
Parameter | Description
|
||||
--------- | -----------
|
||||
`daprPort` | The Dapr port
|
||||
`storename` | The `metadata.name` field component file. Refer to the [component schema] ({{< ref component-schema.md>}})
|
||||
`storename` | The `metadata.name` field component file. Refer to the [component schema]({{< ref component-schema.md>}})
|
||||
|
||||
#### Query Parameters
|
||||
|
||||
|
@ -83,7 +83,7 @@ GET http://localhost:<daprPort>/v1.0-alpha1/configuration/<storename>/subscribe
|
|||
Parameter | Description
|
||||
--------- | -----------
|
||||
`daprPort` | The Dapr port
|
||||
`storename` | The `metadata.name` field component file. Refer to the [component schema] ({{< ref component-schema.md>}})
|
||||
`storename` | The `metadata.name` field component file. Refer to the [component schema]({{< ref component-schema.md>}})
|
||||
|
||||
#### Query Parameters
|
||||
|
||||
|
@ -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
|
||||
|
@ -196,7 +201,7 @@ POST http://localhost:<appPort>/configuration/<store-name>/<key>
|
|||
Parameter | Description
|
||||
--------- | -----------
|
||||
`appPort` | The application port
|
||||
`storename` | The `metadata.name` field component file. Refer to the [component schema] ({{< ref component-schema.md>}})
|
||||
`storename` | The `metadata.name` field component file. Refer to the [component schema]({{< ref component-schema.md>}})
|
||||
`key` | The key subscribed to
|
||||
|
||||
#### Request Body
|
||||
|
@ -231,4 +236,4 @@ A list of configuration items for a given subscription id. Configuration items c
|
|||
## Next Steps
|
||||
|
||||
- [Configuration API overview]({{< ref configuration-api-overview.md >}})
|
||||
- [How-To: Manage configuration from a store]({{< ref howto-manage-configuration.md >}})
|
||||
- [How-To: Manage configuration from a store]({{< ref howto-manage-configuration.md >}})
|
||||
|
|
|
@ -9,8 +9,7 @@ aliases:
|
|||
|
||||
## Component format
|
||||
|
||||
To setup Redis configuration store create a component of type `configuration.redis`. See [this guide]({{< ref "howto-get-save-state.md#step-1-setup-a-state-store" >}}) on how to create and apply a configuration store configuration.
|
||||
|
||||
To setup Redis configuration store create a component of type `configuration.redis`. See [this guide]({{< ref "howto-manage-configuration.md#configure-a-dapr-configuration-store" >}}) on how to create and apply a configuration store configuration.
|
||||
```yaml
|
||||
apiVersion: dapr.io/v1alpha1
|
||||
kind: Component
|
||||
|
|
|
@ -100,7 +100,7 @@ If using TinyGo, compile as shown below and set the spec metadata field named
|
|||
"path" to the location of the output (ex "example.wasm"):
|
||||
|
||||
```bash
|
||||
tinygo build -o example.wasm -scheduler=none --no-debug -target=wasi example.go`
|
||||
tinygo build -o example.wasm -scheduler=none --no-debug -target=wasi example.go
|
||||
```
|
||||
|
||||
## Related links
|
||||
|
|
|
@ -116,7 +116,7 @@ docker run -it \
|
|||
{{% /codetab %}}
|
||||
|
||||
{{% codetab %}}
|
||||
Refer to the following [Helm chart](https://pulsar.apache.org/docs/en/kubernetes-helm/) Documentation.
|
||||
Refer to the following [Helm chart](https://pulsar.apache.org/docs/helm-overview) Documentation.
|
||||
{{% /codetab %}}
|
||||
|
||||
{{< /tabs >}}
|
||||
|
|
Loading…
Reference in New Issue