-
Notifications
You must be signed in to change notification settings - Fork 55
/
home.http
65 lines (55 loc) · 1.69 KB
/
home.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
### test home page
GET http://localhost:8801/
### start API POST
POST http://localhost:8801//api/v1/workflow/start
Content-Type: application/json
{
"workflowId": "test-wf",
"iwfWorkflowType": "test-wf-type",
"workflowTimeoutSeconds": 10,
"iwfWorkerUrl": "http://localhost:8080",
"startStateId": "test_state_1",
"stateInput": {
"encoding": "json",
"data": "\"a string\""
}
}
### reset API
### NOTE: supported resetType: BEGINNING, HISTORY_EVENT_ID, HISTORY_EVENT_TIME, STATE_ID, STATE_EXECUTION_ID
### each reset type may require one supplement field, e.g. HISTORY_EVENT_ID requires historyEventId
POST http://localhost:8801/api/v1/workflow/reset
Content-Type: application/json
{
"workflowId": "2b85e588-12fd-456d-ad99-df51bda6cce8",
"resetType": "STATE_ID",
"stateId": "WaitAndPrepareState",
"skipSignalReapply": true
}
### skip timer API
POST http://localhost:8801/api/v1/workflow/timer/skip
Content-Type: application/json
{
"workflowId": "2b85e588-12fd-456d-ad99-df51bda6cce8",
"workflowStateExecutionId": "WaitAndPrepareState-1",
"timerCommandIndex": 0
}
### signal workflow
POST http://localhost:8801/api/v1/workflow/signal
Content-Type: application/json
{
"workflowId": "3d8659b1-b985-4b50-9350-e34bdfee2b95",
"signalChannelName": "sendNow",
"signalValue": {
"encoding": "jsonType",
"data": "\"a string value\""
}
}
### dump workflow persistence1680717966708866000-4\",\"workflowRunId\":\"74fe9e9c-52a6-4c8e-9562-24eafbb95301
POST http://localhost:9715/api/v1/workflow/internal/dump
Content-Type: application/json
{
"workflowId": "persistence1680717966708866000-4",
"workflowRunId": "74fe9e9c-52a6-4c8e-9562-24eafbb95301",
"pageSizeInBytes": 0,
"pageNum": 0
}