mirror of https://github.com/dapr/dotnet-sdk.git
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:
parent
be959f943c
commit
8e9db70c0f
|
@ -1,17 +1,17 @@
|
||||||
### Start order processing workflow - replace xxx with any id you like
|
### 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
|
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
|
### 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
|
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
|
### 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
|
### 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-alpha1/workflows/dapr/xxx/terminate
|
Loading…
Reference in New Issue