Fix dapr command options (#52)

* Fix dapr command options

* Fix dapr command options
This commit is contained in:
Hirofumi Horikawa 2021-03-17 06:38:09 +09:00 committed by GitHub
parent b2e8dc4c0b
commit 480ef9bf26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -80,17 +80,17 @@ First, POST the message by using Dapr cli in a new command line terminal:
Windows Command Prompt
```sh
dapr invoke --app-id nodeapp --method neworder --payload "{\"data\": { \"orderId\": \"41\" } }"
dapr invoke --verb POST --app-id nodeapp --method neworder --data "{\"data\": { \"orderId\": \"41\" } }"
```
Windows PowerShell
```sh
dapr invoke --app-id nodeapp --method neworder --payload '{\"data\": { \"orderId\": \"41\" } }'
dapr invoke --verb POST --app-id nodeapp --method neworder --data '{\"data\": { \"orderId\": \"41\" } }'
```
Linux or MacOS
```sh
dapr invoke --app-id nodeapp --method neworder --payload '{"data": { "orderId": "41" } }'
dapr invoke --verb POST --app-id nodeapp --method neworder --data '{"data": { "orderId": "41" } }'
```
Now, you can also do this using `curl` with:

View File

@ -127,22 +127,22 @@ First, POST the message by using Dapr cli in a new command line terminal:
Windows Command Prompt
```sh
dapr invokePost --app-id nodeapp --method neworder --payload "{\"data\": { \"orderId\": \"41\" } }"
dapr invoke --verb POST --app-id nodeapp --method neworder --data "{\"data\": { \"orderId\": \"41\" } }"
```
Windows PowerShell
```sh
dapr invokePost --app-id nodeapp --method neworder --payload '{\"data\": { \"orderId\": \"41\" } }'
dapr invoke --verb POST --app-id nodeapp --method neworder --data '{\"data\": { \"orderId\": \"41\" } }'
```
Linux or MacOS
```sh
dapr invokePost --app-id nodeapp --method neworder --payload '{"data": { "orderId": "41" } }'
dapr invoke --verb POST --app-id nodeapp --method neworder --data '{"data": { "orderId": "41" } }'
```
Next, GET the content of the persisted order:
```sh
dapr invokeGet --app-id nodeapp --method order
dapr invoke --verb GET --app-id nodeapp --method order
```
And the response should be: