mirror of https://github.com/dapr/docs.git
update http/powershell example (#3198)
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
parent
30f0094ca0
commit
7278e3b8ac
|
@ -926,7 +926,7 @@ curl -X POST -H "Content-Type: application/json" -d '{"keys":["order_1", "order_
|
||||||
With the same Dapr instance running from above, save two key/value pairs into your statestore:
|
With the same Dapr instance running from above, save two key/value pairs into your statestore:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
Invoke-RestMethod -Method Post -ContentType 'application/json' -Body '{"operations": [{"operation":"upsert", "request": {"key": "order_1", "value": "250"}}, {"operation":"delete", "request": {"key": "order_2"}}]}' -Uri 'http://localhost:3601/v1.0/state/statestore'
|
Invoke-RestMethod -Method Post -ContentType 'application/json' -Body '{"operations": [{"operation":"upsert", "request": {"key": "order_1", "value": "250"}}, {"operation":"delete", "request": {"key": "order_2"}}]}' -Uri 'http://localhost:3601/v1.0/state/statestore/transaction'
|
||||||
```
|
```
|
||||||
|
|
||||||
Now see the results of your state transactions:
|
Now see the results of your state transactions:
|
||||||
|
|
Loading…
Reference in New Issue