Update sample 1 from dapr send to dapr invoke (#124)

* Update README.md for 1.hello-world.

Update README.md for 1.hello-world to reflect latest version.

* s/dapr send/dapr invoke/
This commit is contained in:
Artur Souza 2019-12-05 14:25:23 -08:00 committed by GitHub
parent 827fd00352
commit 04e46ccbf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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