Skip to content

Commit 8e9db70

Browse files
Fix HTTP examples in Workflow Console App (#1107)
* Update demo.http; Signed-off-by: Shubham Sharma <[email protected]> * Fix input Signed-off-by: Shubham Sharma <[email protected]> --------- Signed-off-by: Shubham Sharma <[email protected]> Co-authored-by: halspang <[email protected]>
1 parent be959f9 commit 8e9db70

File tree

1 file changed

+5
-5
lines changed
  • examples/Workflow/WorkflowConsoleApp

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
### Start order processing workflow - replace xxx with any id you like
2-
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/xxx/start
2+
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/start?instanceID=xxx
33
Content-Type: application/json
44

5-
{ "input" : {"Name": "Paperclips", "TotalCost": 99.95, "Quantity": 1}}
5+
{"Name": "Paperclips", "TotalCost": 99.95, "Quantity": 1}
66

77
### Start order processing workflow - replace xxx with any id you like
8-
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/xxx/start
8+
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/start?instanceID=xxx
99
Content-Type: application/json
1010

11-
{ "input" : {"Name": "Cars", "TotalCost": 10000, "Quantity": 30}}
11+
{"Name": "Cars", "TotalCost": 10000, "Quantity": 30}
1212

1313
### Query dapr sidecar - replace xxx with id from the workflow you've created above
14-
GET http://localhost:3500/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/xxx
14+
GET http://localhost:3500/v1.0-alpha1/workflows/dapr/xxx
1515

1616
### Terminate the workflow - replace xxx with id from the workflow you've created above
1717
POST http://localhost:3500/v1.0-alpha1/workflows/dapr/xxx/terminate

0 commit comments

Comments
 (0)