Updating curl command to include Content-type:application/json (#192)

This commit is contained in:
Nills Franssens 2020-04-29 08:17:37 -07:00 committed by GitHub
parent 44d5bc2c20
commit 13e6e88521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ dapr invoke --app-id nodeapp --method neworder --payload '{"data": { "orderId":
Now, we can also do this using `curl` with:
```sh
curl -XPOST -d @sample.json http://localhost:3500/v1.0/invoke/nodeapp/method/neworder
curl -XPOST -d @sample.json -H "Content-Type:application/json" http://localhost:3500/v1.0/invoke/nodeapp/method/neworder
```
Or, we can also do this using the Visual Studio Code [Rest Client Plugin](https://marketplace.visualstudio.com/items?itemName=humao.rest-client)