dotnet-sdk/examples/Workflow/WorkflowConsoleApp/demo.http

17 lines
811 B
HTTP

### Start order processing workflow - replace xxx with any id you like
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-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-beta1/workflows/dapr/xxx
### Terminate the workflow - replace xxx with id from the workflow you've created above
POST http://localhost:3500/v1.0-beta1/workflows/dapr/xxx/terminate