Fix HTTP examples in Workflow Console App (#1107)

* Update demo.http;

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix input

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

---------

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
This commit is contained in:
Shubham Sharma 2023-06-16 05:37:36 +05:30 committed by GitHub
parent be959f943c
commit 8e9db70c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -1,17 +1,17 @@
### Start order processing workflow - replace xxx with any id you like
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/xxx/start
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/start?instanceID=xxx
Content-Type: application/json
{ "input" : {"Name": "Paperclips", "TotalCost": 99.95, "Quantity": 1}}
{"Name": "Paperclips", "TotalCost": 99.95, "Quantity": 1}
### Start order processing workflow - replace xxx with any id you like
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/xxx/start
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/start?instanceID=xxx
Content-Type: application/json
{ "input" : {"Name": "Cars", "TotalCost": 10000, "Quantity": 30}}
{"Name": "Cars", "TotalCost": 10000, "Quantity": 30}
### Query dapr sidecar - replace xxx with id from the workflow you've created above
GET http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/xxx
GET http://localhost:3500/v1.0-alpha1/workflows/dapr/xxx
### Terminate the workflow - replace xxx with id from the workflow you've created above
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/xxx/terminate