update http/powershell example (#3198)

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
Hannah Hunter 2023-03-06 23:44:14 -06:00 committed by GitHub
parent 30f0094ca0
commit 7278e3b8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: