-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding cancel to workflow example and updating api references to beta (…
…#1194) Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
- Loading branch information
1 parent
e8204dc
commit 10ef818
Showing
4 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/start?instanceID=xxx | ||
POST http://localhost:3500/v1.0-beta1/workflows/dapr/OrderProcessingWorkflow/start?instanceID=xxx | ||
Content-Type: application/json | ||
|
||
{"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/start?instanceID=xxx | ||
POST http://localhost:3500/v1.0-beta1/workflows/dapr/OrderProcessingWorkflow/start?instanceID=xxx | ||
Content-Type: application/json | ||
|
||
{"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/xxx | ||
GET http://localhost:3500/v1.0-beta1/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 | ||
POST http://localhost:3500/v1.0-beta1/workflows/dapr/xxx/terminate |