1
1
{
2
2
"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" ,
5
5
"schema" : " https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6
6
},
7
7
"item" : [
8
8
{
9
- "name" : " Custom actions " ,
9
+ "name" : " Actions " ,
10
10
"item" : [
11
11
{
12
- "name" : " Assign to me (Test Test) " ,
12
+ "name" : " Assign workflow task to me " ,
13
13
"request" : {
14
14
"auth" : {
15
15
"type" : " basic" ,
32
32
"key" : " Content-Type" ,
33
33
"value" : " application/json" ,
34
34
"type" : " text"
35
+ },
36
+ {
37
+ "key" : " Accept" ,
38
+ "value" : " application/hal+json\n " ,
39
+ "type" : " text"
35
40
}
36
41
],
37
42
"body" : {
58
63
"response" : []
59
64
},
60
65
{
61
- "name" : " Assign to user (Test Test) " ,
66
+ "name" : " Assign workflow task to user " ,
62
67
"request" : {
63
68
"auth" : {
64
69
"type" : " basic" ,
81
86
"key" : " Content-Type" ,
82
87
"type" : " text" ,
83
88
"value" : " application/json"
89
+ },
90
+ {
91
+ "key" : " Accept" ,
92
+ "value" : " application/hal+json" ,
93
+ "type" : " text"
84
94
}
85
95
],
86
96
"body" : {
107
117
"response" : []
108
118
},
109
119
{
110
- "name" : " Change transition (Test Test) " ,
120
+ "name" : " Change workflow task transition " ,
111
121
"request" : {
112
122
"auth" : {
113
123
"type" : " basic" ,
130
140
"key" : " Content-Type" ,
131
141
"type" : " text" ,
132
142
"value" : " application/json"
143
+ },
144
+ {
145
+ "key" : " Accept" ,
146
+ "value" : " application/hal+json" ,
147
+ "type" : " text"
133
148
}
134
149
],
135
150
"body" : {
156
171
"response" : []
157
172
},
158
173
{
159
- "name" : " Update due date (Test Test) " ,
174
+ "name" : " Update workflow task due date " ,
160
175
"request" : {
161
176
"auth" : {
162
177
"type" : " basic" ,
204
219
},
205
220
"response" : []
206
221
}
207
- ]
208
- },
209
- {
210
- "name" : " Workflow tasks (Test Test)" ,
211
- "request" : {
212
- "auth" : {
213
- "type" : " basic" ,
214
- "basic" : [
215
- {
216
- "key" : " username" ,
217
-
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
+ }
232
233
},
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
+ }
248
243
}
249
- },
250
- "response" : []
244
+ ]
251
245
},
252
246
{
253
- "name" : " Assigned to me (Test Test) " ,
247
+ "name" : " Get tasks assigned to user " ,
254
248
"request" : {
255
249
"auth" : {
256
250
"type" : " basic" ,
268
262
]
269
263
},
270
264
"method" : " GET" ,
271
- "header" : [],
265
+ "header" : [
266
+ {
267
+ "key" : " Accept" ,
268
+ "value" : " application/hal+json" ,
269
+ "type" : " text"
270
+ }
271
+ ],
272
272
"body" : {
273
273
"mode" : " raw" ,
274
274
"raw" : " "
293
293
"response" : []
294
294
},
295
295
{
296
- "name" : " Assigned to my roles (Test Test) " ,
296
+ "name" : " Get tasks assigned to user roles " ,
297
297
"request" : {
298
298
"auth" : {
299
299
"type" : " basic" ,
311
311
]
312
312
},
313
313
"method" : " GET" ,
314
- "header" : [],
314
+ "header" : [
315
+ {
316
+ "key" : " Accept" ,
317
+ "value" : " application/hal+json" ,
318
+ "type" : " text"
319
+ }
320
+ ],
315
321
"body" : {
316
322
"mode" : " raw" ,
317
323
"raw" : " "
336
342
"response" : []
337
343
},
338
344
{
339
- "name" : " Single task (Test Test) " ,
345
+ "name" : " Get task" ,
340
346
"request" : {
341
347
"auth" : {
342
348
"type" : " basic" ,
354
360
]
355
361
},
356
362
"method" : " GET" ,
357
- "header" : [],
363
+ "header" : [
364
+ {
365
+ "key" : " Accept" ,
366
+ "value" : " application/hal+json" ,
367
+ "type" : " text"
368
+ }
369
+ ],
358
370
"body" : {
359
371
"mode" : " raw" ,
360
372
"raw" : " "
378
390
"response" : []
379
391
},
380
392
{
381
- "name" : " Workflow logs of a single task (Test Test) " ,
393
+ "name" : " Get workflow task logs " ,
382
394
"request" : {
383
395
"method" : " GET" ,
384
- "header" : [],
396
+ "header" : [
397
+ {
398
+ "key" : " Accept" ,
399
+ "value" : " application/hal+json" ,
400
+ "type" : " text"
401
+ }
402
+ ],
385
403
"body" : {
386
404
"mode" : " raw" ,
387
405
"raw" : " "
388
406
},
389
407
"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" ,
391
409
"protocol" : " http" ,
392
410
"host" : [
393
411
" localhost"
398
416
" api" ,
399
417
" p" ,
400
418
" workflow-tasks" ,
401
- " 36775 " ,
419
+ " 36564 " ,
402
420
" workflow-logs"
403
421
]
404
422
}
405
423
},
406
424
"response" : []
407
425
}
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
+ }
408
463
]
409
464
}
0 commit comments