mirror of https://github.com/dapr/quickstarts.git
27 lines
501 B
HTTP
27 lines
501 B
HTTP
@apphost=http://localhost:8080
|
|
|
|
### Start the ExternalEventsWorkflow workflow
|
|
POST {{ apphost }}/start
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"id": "{{orderId}}",
|
|
"description": "Rubber ducks",
|
|
"quantity": 100,
|
|
"totalPrice": 500
|
|
}
|
|
|
|
### Get the workflow status
|
|
GET {{ apphost }}/status
|
|
|
|
|
|
|
|
### Send an approval event
|
|
@eventName=approval-event
|
|
POST {{ apphost }}/event/{{ instanceId }}/{{ eventName }}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"OrderId": "{{instanceId}}",
|
|
"IsApproved": true
|
|
} |