From 02acbb3637376f493d78d6a0ee0f3dacf650f40e Mon Sep 17 00:00:00 2001 From: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Date: Mon, 26 Sep 2022 11:19:29 -0500 Subject: [PATCH 1/4] update link (#2823) Signed-off-by: Hannah Hunter Signed-off-by: Hannah Hunter --- .../components-reference/supported-pubsub/setup-pulsar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-pulsar.md b/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-pulsar.md index 470e8fc18..df12e4027 100644 --- a/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-pulsar.md +++ b/daprdocs/content/en/reference/components-reference/supported-pubsub/setup-pulsar.md @@ -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 >}} From fe43ed7a6d5c429ddfbb66c716d0eabfeff74177 Mon Sep 17 00:00:00 2001 From: Loong Dai Date: Tue, 27 Sep 2022 11:47:40 +0800 Subject: [PATCH 2/4] fix the example code (#2811) Signed-off-by: Loong Signed-off-by: Loong --- .../supported-middleware/middleware-wasm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-middleware/middleware-wasm.md b/daprdocs/content/en/reference/components-reference/supported-middleware/middleware-wasm.md index 7740073cb..343b25a12 100644 --- a/daprdocs/content/en/reference/components-reference/supported-middleware/middleware-wasm.md +++ b/daprdocs/content/en/reference/components-reference/supported-middleware/middleware-wasm.md @@ -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 From a70b666c9c1ab3b119289ed40f8f022b01cf12d8 Mon Sep 17 00:00:00 2001 From: Sarthak Sharma Date: Tue, 27 Sep 2022 09:57:24 +0530 Subject: [PATCH 3/4] fix incorrect reference (#2802) Signed-off-by: Sarthak Sharma Signed-off-by: Sarthak Sharma Co-authored-by: Mark Fussell --- .../redis-configuration-store.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-configuration-stores/redis-configuration-store.md b/daprdocs/content/en/reference/components-reference/supported-configuration-stores/redis-configuration-store.md index e4cd15f31..d1417d805 100644 --- a/daprdocs/content/en/reference/components-reference/supported-configuration-stores/redis-configuration-store.md +++ b/daprdocs/content/en/reference/components-reference/supported-configuration-stores/redis-configuration-store.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 From 1bbdb328bb946b48395d8fa802e2fb618c736bc9 Mon Sep 17 00:00:00 2001 From: Sarthak Sharma Date: Tue, 27 Sep 2022 10:28:54 +0530 Subject: [PATCH 4/4] Fix Configuration API unsubscribe endpoint (#2797) * fix unsubscribe path Signed-off-by: Sarthak Sharma * maintain punctuation uniformity Signed-off-by: Sarthak Sharma * maintain punctuation uniformity Signed-off-by: Sarthak Sharma * Update configuration_api.md Making examples consistent Signed-off-by: Mark Fussell Signed-off-by: Sarthak Sharma Signed-off-by: Mark Fussell Co-authored-by: Mark Fussell --- .../en/reference/api/configuration_api.md | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/daprdocs/content/en/reference/api/configuration_api.md b/daprdocs/content/en/reference/api/configuration_api.md index df88f33df..9a13daf18 100644 --- a/daprdocs/content/en/reference/api/configuration_api.md +++ b/daprdocs/content/en/reference/api/configuration_api.md @@ -21,7 +21,7 @@ GET http://localhost:/v1.0-alpha1/configuration/ 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:/v1.0-alpha1/configuration//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:/v1.0-alpha1/configuration//unsubscribe +GET http://localhost:/v1.0-alpha1/configuration///unsubscribe ``` #### URL Parameters @@ -149,6 +149,7 @@ GET http://localhost:/v1.0-alpha1/configuration//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:/configuration// 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 >}}) \ No newline at end of file +- [How-To: Manage configuration from a store]({{< ref howto-manage-configuration.md >}})