Skip to content

Commit d61b2b4

Browse files
committed
Update forms and workflow examples
1 parent 246edb2 commit d61b2b4

File tree

2 files changed

+169
-65
lines changed

2 files changed

+169
-65
lines changed

forms/postman/Headless APIs Forms.postman_collection.json renamed to forms/postman/Headless APIO Forms.postman_collection.json

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
{
22
"info": {
3-
"_postman_id": "0fa0357c-7d06-439f-b7ed-0862c6d795c2",
4-
"name": "Headless APIs Forms",
3+
"_postman_id": "6ada73ed-333e-406a-bb19-8d8b1c26e79f",
4+
"name": "Headless APIO Forms",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
66
},
77
"item": [
88
{
9-
"name": "Form (Test Test)",
9+
"name": "Get form",
1010
"request": {
1111
"method": "GET",
12-
"header": [],
12+
"header": [
13+
{
14+
"key": "Accept",
15+
"value": "application/hal+json",
16+
"type": "text"
17+
}
18+
],
1319
"body": {
1420
"mode": "raw",
1521
"raw": ""
@@ -33,10 +39,16 @@
3339
"response": []
3440
},
3541
{
36-
"name": "Form embedded structure (Test Test)",
42+
"name": "Get form with structure embedded",
3743
"request": {
3844
"method": "GET",
39-
"header": [],
45+
"header": [
46+
{
47+
"key": "Accept",
48+
"value": "application/hal+json",
49+
"type": "text"
50+
}
51+
],
4052
"body": {
4153
"mode": "raw",
4254
"raw": ""
@@ -65,5 +77,42 @@
6577
},
6678
"response": []
6779
}
80+
],
81+
"auth": {
82+
"type": "basic",
83+
"basic": [
84+
{
85+
"key": "password",
86+
"value": "test",
87+
"type": "string"
88+
},
89+
{
90+
"key": "username",
91+
"value": "test",
92+
"type": "string"
93+
}
94+
]
95+
},
96+
"event": [
97+
{
98+
"listen": "prerequest",
99+
"script": {
100+
"id": "97606831-af2e-4bcb-ae46-41eea2b5af3c",
101+
"type": "text/javascript",
102+
"exec": [
103+
""
104+
]
105+
}
106+
},
107+
{
108+
"listen": "test",
109+
"script": {
110+
"id": "77452db8-e0c2-446e-ab4c-75318cb8c920",
111+
"type": "text/javascript",
112+
"exec": [
113+
""
114+
]
115+
}
116+
}
68117
]
69118
}

workflow/postman/Headless APIs Workflow.postman_collection.json renamed to workflow/postman/Headless APIO Workflow.postman_collection.json

Lines changed: 114 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"info": {
3-
"_postman_id": "24daf232-3a70-4ca4-a6a9-cc520b91e321",
4-
"name": "Headless APIs Workflow",
3+
"_postman_id": "5594c518-7e8d-4886-83bc-10544e1231fc",
4+
"name": "Headless APIO Workflow",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
66
},
77
"item": [
88
{
9-
"name": "Custom actions",
9+
"name": "Actions",
1010
"item": [
1111
{
12-
"name": "Assign to me (Test Test)",
12+
"name": "Assign workflow task to me",
1313
"request": {
1414
"auth": {
1515
"type": "basic",
@@ -32,6 +32,11 @@
3232
"key": "Content-Type",
3333
"value": "application/json",
3434
"type": "text"
35+
},
36+
{
37+
"key": "Accept",
38+
"value": "application/hal+json\n",
39+
"type": "text"
3540
}
3641
],
3742
"body": {
@@ -58,7 +63,7 @@
5863
"response": []
5964
},
6065
{
61-
"name": "Assign to user (Test Test)",
66+
"name": "Assign workflow task to user",
6267
"request": {
6368
"auth": {
6469
"type": "basic",
@@ -81,6 +86,11 @@
8186
"key": "Content-Type",
8287
"type": "text",
8388
"value": "application/json"
89+
},
90+
{
91+
"key": "Accept",
92+
"value": "application/hal+json",
93+
"type": "text"
8494
}
8595
],
8696
"body": {
@@ -107,7 +117,7 @@
107117
"response": []
108118
},
109119
{
110-
"name": "Change transition (Test Test)",
120+
"name": "Change workflow task transition",
111121
"request": {
112122
"auth": {
113123
"type": "basic",
@@ -130,6 +140,11 @@
130140
"key": "Content-Type",
131141
"type": "text",
132142
"value": "application/json"
143+
},
144+
{
145+
"key": "Accept",
146+
"value": "application/hal+json",
147+
"type": "text"
133148
}
134149
],
135150
"body": {
@@ -156,7 +171,7 @@
156171
"response": []
157172
},
158173
{
159-
"name": "Update due date (Test Test)",
174+
"name": "Update workflow task due date",
160175
"request": {
161176
"auth": {
162177
"type": "basic",
@@ -204,53 +219,32 @@
204219
},
205220
"response": []
206221
}
207-
]
208-
},
209-
{
210-
"name": "Workflow tasks (Test Test)",
211-
"request": {
212-
"auth": {
213-
"type": "basic",
214-
"basic": [
215-
{
216-
"key": "username",
217-
"value": "[email protected]",
218-
"type": "string"
219-
},
220-
{
221-
"key": "password",
222-
"value": "test",
223-
"type": "string"
224-
}
225-
]
226-
},
227-
"method": "GET",
228-
"header": [],
229-
"body": {
230-
"mode": "raw",
231-
"raw": ""
222+
],
223+
"event": [
224+
{
225+
"listen": "prerequest",
226+
"script": {
227+
"id": "52fded47-64a4-426b-90cb-412d1dde4106",
228+
"type": "text/javascript",
229+
"exec": [
230+
""
231+
]
232+
}
232233
},
233-
"url": {
234-
"raw": "http://localhost:8080/o/api/p/my-user-account/20139/workflow-tasks",
235-
"protocol": "http",
236-
"host": [
237-
"localhost"
238-
],
239-
"port": "8080",
240-
"path": [
241-
"o",
242-
"api",
243-
"p",
244-
"my-user-account",
245-
"20139",
246-
"workflow-tasks"
247-
]
234+
{
235+
"listen": "test",
236+
"script": {
237+
"id": "8d8886fa-7843-4ffa-a1e5-0abd1ae10e28",
238+
"type": "text/javascript",
239+
"exec": [
240+
""
241+
]
242+
}
248243
}
249-
},
250-
"response": []
244+
]
251245
},
252246
{
253-
"name": "Assigned to me (Test Test)",
247+
"name": "Get tasks assigned to user",
254248
"request": {
255249
"auth": {
256250
"type": "basic",
@@ -268,7 +262,13 @@
268262
]
269263
},
270264
"method": "GET",
271-
"header": [],
265+
"header": [
266+
{
267+
"key": "Accept",
268+
"value": "application/hal+json",
269+
"type": "text"
270+
}
271+
],
272272
"body": {
273273
"mode": "raw",
274274
"raw": ""
@@ -293,7 +293,7 @@
293293
"response": []
294294
},
295295
{
296-
"name": "Assigned to my roles (Test Test)",
296+
"name": "Get tasks assigned to user roles",
297297
"request": {
298298
"auth": {
299299
"type": "basic",
@@ -311,7 +311,13 @@
311311
]
312312
},
313313
"method": "GET",
314-
"header": [],
314+
"header": [
315+
{
316+
"key": "Accept",
317+
"value": "application/hal+json",
318+
"type": "text"
319+
}
320+
],
315321
"body": {
316322
"mode": "raw",
317323
"raw": ""
@@ -336,7 +342,7 @@
336342
"response": []
337343
},
338344
{
339-
"name": "Single task (Test Test)",
345+
"name": "Get task",
340346
"request": {
341347
"auth": {
342348
"type": "basic",
@@ -354,7 +360,13 @@
354360
]
355361
},
356362
"method": "GET",
357-
"header": [],
363+
"header": [
364+
{
365+
"key": "Accept",
366+
"value": "application/hal+json",
367+
"type": "text"
368+
}
369+
],
358370
"body": {
359371
"mode": "raw",
360372
"raw": ""
@@ -378,16 +390,22 @@
378390
"response": []
379391
},
380392
{
381-
"name": "Workflow logs of a single task (Test Test)",
393+
"name": "Get workflow task logs",
382394
"request": {
383395
"method": "GET",
384-
"header": [],
396+
"header": [
397+
{
398+
"key": "Accept",
399+
"value": "application/hal+json",
400+
"type": "text"
401+
}
402+
],
385403
"body": {
386404
"mode": "raw",
387405
"raw": ""
388406
},
389407
"url": {
390-
"raw": "http://localhost:8080/o/api/p/workflow-tasks/36775/workflow-logs",
408+
"raw": "http://localhost:8080/o/api/p/workflow-tasks/36564/workflow-logs",
391409
"protocol": "http",
392410
"host": [
393411
"localhost"
@@ -398,12 +416,49 @@
398416
"api",
399417
"p",
400418
"workflow-tasks",
401-
"36775",
419+
"36564",
402420
"workflow-logs"
403421
]
404422
}
405423
},
406424
"response": []
407425
}
426+
],
427+
"auth": {
428+
"type": "basic",
429+
"basic": [
430+
{
431+
"key": "username",
432+
"value": "test",
433+
"type": "string"
434+
},
435+
{
436+
"key": "password",
437+
"value": "test",
438+
"type": "string"
439+
}
440+
]
441+
},
442+
"event": [
443+
{
444+
"listen": "prerequest",
445+
"script": {
446+
"id": "8b3903c1-f8a2-46f5-a2df-e0bb3107dd25",
447+
"type": "text/javascript",
448+
"exec": [
449+
""
450+
]
451+
}
452+
},
453+
{
454+
"listen": "test",
455+
"script": {
456+
"id": "e0425398-c56e-4ea4-9522-d61f59a9eb2a",
457+
"type": "text/javascript",
458+
"exec": [
459+
""
460+
]
461+
}
462+
}
408463
]
409464
}

0 commit comments

Comments
 (0)