mirror of https://github.com/dapr/docs.git
Update subscription examples (#2957)
* dotnet submodule Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> * update to v2alpha Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> * revert some changes Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> * update routes Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com> Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
parent
4093682e9a
commit
e2fa30d3c2
|
|
@ -155,13 +155,14 @@ Learn more in the [declarative and programmatic subscriptions doc]({{< ref subsc
|
|||
Create a file named `subscription.yaml` and paste the following:
|
||||
|
||||
```yaml
|
||||
apiVersion: dapr.io/v1alpha1
|
||||
apiVersion: dapr.io/v2alpha1
|
||||
kind: Subscription
|
||||
metadata:
|
||||
name: order-pub-sub
|
||||
spec:
|
||||
topic: orders
|
||||
route: /checkout
|
||||
routes:
|
||||
default: /checkout
|
||||
pubsubname: order-pub-sub
|
||||
scopes:
|
||||
- orderprocessing
|
||||
|
|
|
|||
Loading…
Reference in New Issue