@itentialopensource/adapter-jenkins 0.1.7 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/AUTH.md +39 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +199 -0
  4. package/CHANGELOG.md +32 -20
  5. package/CODE_OF_CONDUCT.md +12 -17
  6. package/CONTRIBUTING.md +3 -148
  7. package/ENHANCE.md +69 -0
  8. package/PROPERTIES.md +641 -0
  9. package/README.md +235 -576
  10. package/SUMMARY.md +9 -0
  11. package/SYSTEMINFO.md +11 -0
  12. package/TROUBLESHOOT.md +47 -0
  13. package/adapter.js +381 -262
  14. package/adapterBase.js +854 -408
  15. package/changelogs/changelog.md +60 -0
  16. package/entities/.generic/action.json +105 -0
  17. package/entities/.generic/schema.json +6 -1
  18. package/error.json +6 -0
  19. package/metadata.json +49 -0
  20. package/package.json +27 -22
  21. package/pronghorn.json +691 -88
  22. package/propertiesDecorators.json +14 -0
  23. package/propertiesSchema.json +827 -6
  24. package/refs?service=git-upload-pack +0 -0
  25. package/report/adapter-openapi.json +283 -0
  26. package/report/adapter-openapi.yaml +199 -0
  27. package/report/adapterInfo.json +10 -0
  28. package/report/updateReport1653183591077.json +120 -0
  29. package/report/updateReport1691507745232.json +120 -0
  30. package/report/updateReport1692202738085.json +120 -0
  31. package/report/updateReport1694455436235.json +120 -0
  32. package/report/updateReport1694457490029.json +120 -0
  33. package/report/updateReport1694463089408.json +120 -0
  34. package/report/updateReport1698421354015.json +120 -0
  35. package/sampleProperties.json +153 -3
  36. package/test/integration/adapterTestBasicGet.js +3 -5
  37. package/test/integration/adapterTestConnectivity.js +91 -42
  38. package/test/integration/adapterTestIntegration.js +155 -103
  39. package/test/unit/adapterBaseTestUnit.js +388 -308
  40. package/test/unit/adapterTestUnit.js +479 -241
  41. package/utils/adapterInfo.js +206 -0
  42. package/utils/addAuth.js +94 -0
  43. package/utils/artifactize.js +1 -1
  44. package/utils/basicGet.js +1 -14
  45. package/utils/checkMigrate.js +1 -1
  46. package/utils/entitiesToDB.js +179 -0
  47. package/utils/findPath.js +1 -1
  48. package/utils/methodDocumentor.js +273 -0
  49. package/utils/modify.js +14 -16
  50. package/utils/packModificationScript.js +1 -1
  51. package/utils/patches2bundledDeps.js +90 -0
  52. package/utils/pre-commit.sh +5 -0
  53. package/utils/removeHooks.js +20 -0
  54. package/utils/taskMover.js +309 -0
  55. package/utils/tbScript.js +129 -53
  56. package/utils/tbUtils.js +125 -25
  57. package/utils/testRunner.js +17 -17
  58. package/utils/troubleshootingAdapter.js +10 -31
  59. package/workflows/README.md +0 -3
package/pronghorn.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "methods": [
12
12
  {
13
- "name": "updateAdapterConfiguration",
13
+ "name": "iapUpdateAdapterConfiguration",
14
14
  "summary": "Updates the adapter configuration",
15
15
  "description": "Updates the adapter configuration file with the provided changes",
16
16
  "input": [
@@ -63,6 +63,16 @@
63
63
  "title": "action",
64
64
  "type": "string"
65
65
  }
66
+ },
67
+ {
68
+ "name" : "replace",
69
+ "type": "boolean",
70
+ "info": "True to replace entire mock data, false to merge/append",
71
+ "required": false,
72
+ "schema": {
73
+ "title": "replace",
74
+ "type" : "boolean"
75
+ }
66
76
  }
67
77
  ],
68
78
  "output": {
@@ -79,12 +89,97 @@
79
89
  ],
80
90
  "route": {
81
91
  "verb": "POST",
82
- "path": "/updateAdapterConfiguration"
92
+ "path": "/iapUpdateAdapterConfiguration"
93
+ },
94
+ "task": true
95
+ },
96
+ {
97
+ "name": "iapSuspendAdapter",
98
+ "summary": "Suspends the adapter",
99
+ "description": "Suspends the adapter",
100
+ "input": [
101
+ {
102
+ "name": "mode",
103
+ "type": "enum",
104
+ "enumerals": [
105
+ "pause",
106
+ "error"
107
+ ],
108
+ "info": "How incoming requests are handled. Defaults to 'pause'",
109
+ "description": "How incoming requests are handled. Defaults to 'pause'",
110
+ "schema": {
111
+ "title": "mode",
112
+ "type": "string"
113
+ },
114
+ "required": false
115
+ }
116
+ ],
117
+ "output": {
118
+ "name": "result",
119
+ "type": "object",
120
+ "description": "A JSON Object containing the adapter suspended status",
121
+ "schema": {
122
+ "title": "result",
123
+ "type": "object"
124
+ }
125
+ },
126
+ "roles": [
127
+ "admin"
128
+ ],
129
+ "route": {
130
+ "verb": "POST",
131
+ "path": "/iapSuspendAdapter"
132
+ },
133
+ "task": true
134
+ },
135
+ {
136
+ "name": "iapUnsuspendAdapter",
137
+ "summary": "Unsuspends the adapter",
138
+ "description": "Unsuspends the adapter",
139
+ "input": [],
140
+ "output": {
141
+ "name": "result",
142
+ "type": "object",
143
+ "description": "A JSON Object containing the adapter suspended status",
144
+ "schema": {
145
+ "title": "result",
146
+ "type": "object"
147
+ }
148
+ },
149
+ "roles": [
150
+ "admin"
151
+ ],
152
+ "route": {
153
+ "verb": "POST",
154
+ "path": "/iapUnsuspendAdapter"
83
155
  },
84
156
  "task": true
85
157
  },
86
158
  {
87
- "name": "findPath",
159
+ "name": "iapGetAdapterQueue",
160
+ "summary": "Return the requests that are waiting in the queue if throttling is enabled",
161
+ "description": "Return the requests that are waiting in the queue if throttling is enabled",
162
+ "input": [],
163
+ "output": {
164
+ "name": "result",
165
+ "type": "object",
166
+ "description": "A JSON Object containing the adapter queue",
167
+ "schema": {
168
+ "title": "result",
169
+ "type": "object"
170
+ }
171
+ },
172
+ "roles": [
173
+ "admin"
174
+ ],
175
+ "route": {
176
+ "verb": "POST",
177
+ "path": "/iapGetAdapterQueue"
178
+ },
179
+ "task": true
180
+ },
181
+ {
182
+ "name": "iapFindAdapterPath",
88
183
  "summary": "Provides the ability to see if a particular API path is supported by the adapter",
89
184
  "description": "Provides the ability to see if a particular API path is supported by the adapter",
90
185
  "input": [
@@ -114,12 +209,12 @@
114
209
  ],
115
210
  "route": {
116
211
  "verb": "POST",
117
- "path": "/findPath"
212
+ "path": "/iapFindAdapterPath"
118
213
  },
119
214
  "task": true
120
215
  },
121
216
  {
122
- "name": "troubleshoot",
217
+ "name": "iapTroubleshootAdapter",
123
218
  "summary": "Runs troubleshoot script for adapter",
124
219
  "description": "Runs troubleshoot script for adapter",
125
220
  "input": [
@@ -137,7 +232,11 @@
137
232
  "name": "persistFlag",
138
233
  "type": "boolean",
139
234
  "info": "Whether the input properties should be saved",
140
- "required": true
235
+ "required": true,
236
+ "schema": {
237
+ "title": "persistFlag",
238
+ "type": "boolean"
239
+ }
141
240
  }
142
241
  ],
143
242
  "output": {
@@ -154,31 +253,35 @@
154
253
  ],
155
254
  "route": {
156
255
  "verb": "POST",
157
- "path": "/troubleshoot"
256
+ "path": "/iapTroubleshootAdapter"
158
257
  },
159
258
  "task": true
160
259
  },
161
260
  {
162
- "name": "runHealthcheck",
261
+ "name": "iapRunAdapterHealthcheck",
163
262
  "summary": "Runs healthcheck script for adapter",
164
263
  "description": "Runs healthcheck script for adapter",
165
264
  "input": [],
166
265
  "output": {
167
266
  "name": "result",
168
267
  "type": "boolean",
169
- "description": "Whether healthcheck passed or failed"
268
+ "description": "Whether healthcheck passed or failed",
269
+ "schema": {
270
+ "title": "result",
271
+ "type": "boolean"
272
+ }
170
273
  },
171
274
  "roles": [
172
275
  "admin"
173
276
  ],
174
277
  "route": {
175
278
  "verb": "POST",
176
- "path": "/runHealthcheck"
279
+ "path": "/iapRunAdapterHealthcheck"
177
280
  },
178
281
  "task": true
179
282
  },
180
283
  {
181
- "name": "runConnectivity",
284
+ "name": "iapRunAdapterConnectivity",
182
285
  "summary": "Runs connectivity check script for adapter",
183
286
  "description": "Runs connectivity check script for adapter",
184
287
  "input": [],
@@ -196,12 +299,12 @@
196
299
  ],
197
300
  "route": {
198
301
  "verb": "POST",
199
- "path": "/runConnectivity"
302
+ "path": "/iapRunAdapterConnectivity"
200
303
  },
201
304
  "task": true
202
305
  },
203
306
  {
204
- "name": "runBasicGet",
307
+ "name": "iapRunAdapterBasicGet",
205
308
  "summary": "Runs basicGet script for adapter",
206
309
  "description": "Runs basicGet script for adapter",
207
310
  "input": [],
@@ -219,35 +322,52 @@
219
322
  ],
220
323
  "route": {
221
324
  "verb": "POST",
222
- "path": "/runBasicGet"
325
+ "path": "/iapRunAdapterBasicGet"
223
326
  },
224
327
  "task": true
225
328
  },
226
329
  {
227
- "name": "suspend",
228
- "summary": "Suspends the adapter",
229
- "description": "Suspends the adapter",
330
+ "name": "iapMoveAdapterEntitiesToDB",
331
+ "summary": "Moves entities from an adapter into the IAP database",
332
+ "description": "Moves entities from an adapter into the IAP database",
333
+ "input": [],
334
+ "output": {
335
+ "name": "res",
336
+ "type": "object",
337
+ "description": "A JSON Object containing status, code and the response from the mongo transaction",
338
+ "schema": {
339
+ "title": "res",
340
+ "type": "object"
341
+ }
342
+ },
343
+ "roles": [
344
+ "admin"
345
+ ],
346
+ "route": {
347
+ "verb": "POST",
348
+ "path": "/iapMoveAdapterEntitiesToDB"
349
+ },
350
+ "task": true
351
+ },
352
+ {
353
+ "name": "iapDeactivateTasks",
354
+ "summary": "Deactivate the inputted tasks",
355
+ "description": "Deactivate the inputted tasks",
230
356
  "input": [
231
357
  {
232
- "name": "mode",
233
- "type": "enum",
234
- "enumerals": [
235
- "pause",
236
- "error"
237
- ],
238
- "info": "How incoming requests are handled. Defaults to 'pause'",
239
- "description": "How incoming requests are handled. Defaults to 'pause'",
358
+ "name": "tasks",
359
+ "type": "array",
360
+ "description": "Tasks to deactivate",
240
361
  "schema": {
241
- "title": "mode",
242
- "type": "string"
243
- },
244
- "required": false
362
+ "title": "tasks",
363
+ "type": "array"
364
+ }
245
365
  }
246
366
  ],
247
367
  "output": {
248
368
  "name": "result",
249
369
  "type": "object",
250
- "description": "A JSON Object containing the adapter suspended status",
370
+ "description": "A JSON Object containing success status",
251
371
  "schema": {
252
372
  "title": "result",
253
373
  "type": "object"
@@ -258,19 +378,29 @@
258
378
  ],
259
379
  "route": {
260
380
  "verb": "POST",
261
- "path": "/suspend"
381
+ "path": "/iapDeactivateTasks"
262
382
  },
263
383
  "task": true
264
384
  },
265
385
  {
266
- "name": "unsuspend",
267
- "summary": "Unsuspends the adapter",
268
- "description": "Unsuspends the adapter",
269
- "input": [],
386
+ "name": "iapActivateTasks",
387
+ "summary": "Activate the inputted tasks",
388
+ "description": "activate the inputted tasks",
389
+ "input": [
390
+ {
391
+ "name": "tasks",
392
+ "type": "array",
393
+ "description": "Tasks to activate",
394
+ "schema": {
395
+ "title": "tasks",
396
+ "type": "array"
397
+ }
398
+ }
399
+ ],
270
400
  "output": {
271
401
  "name": "result",
272
402
  "type": "object",
273
- "description": "A JSON Object containing the adapter suspended status",
403
+ "description": "A JSON Object containing success status",
274
404
  "schema": {
275
405
  "title": "result",
276
406
  "type": "object"
@@ -281,19 +411,30 @@
281
411
  ],
282
412
  "route": {
283
413
  "verb": "POST",
284
- "path": "/unsuspend"
414
+ "path": "/iapActivateTasks"
285
415
  },
286
416
  "task": true
287
417
  },
288
418
  {
289
- "name": "getQueue",
290
- "summary": "Return the requests that are waiting in the queue if throttling is enabled",
291
- "description": "Return the requests that are waiting in the queue if throttling is enabled",
292
- "input": [],
419
+ "name": "iapPopulateEntityCache",
420
+ "summary": "Populate the cache for the given entities",
421
+ "description": "Populate the cache for the given entities",
422
+ "input": [
423
+ {
424
+ "name": "entityTypes",
425
+ "type": "array",
426
+ "info": "the entity type(s) to populate",
427
+ "required": true,
428
+ "schema": {
429
+ "title": "entityTypes",
430
+ "type": "array"
431
+ }
432
+ }
433
+ ],
293
434
  "output": {
294
435
  "name": "result",
295
436
  "type": "object",
296
- "description": "A JSON Object containing the adapter queue",
437
+ "description": "A JSON Object containing status, code and the result",
297
438
  "schema": {
298
439
  "title": "result",
299
440
  "type": "object"
@@ -304,78 +445,111 @@
304
445
  ],
305
446
  "route": {
306
447
  "verb": "POST",
307
- "path": "/getQueue"
448
+ "path": "/iapPopulateEntityCache"
308
449
  },
309
450
  "task": true
310
451
  },
311
452
  {
312
- "name": "genericAdapterRequest",
313
- "summary": "Makes the requested generic call",
314
- "description": "Makes the requested generic call",
453
+ "name": "iapRetrieveEntitiesCache",
454
+ "summary": "Retrieves data from cache for specified entity type",
455
+ "description": "Retrieves data from cache for specified entity type",
315
456
  "input": [
316
457
  {
317
- "name": "uriPath",
318
- "type": "string",
319
- "info": "the path of the api call - do not include the host, port, base path or version",
320
- "description": "the path of the api call",
321
- "schema": {
322
- "title": "uriPath",
323
- "type": "string"
324
- },
325
- "required": true
326
- },
327
- {
328
- "name": "restMethod",
458
+ "name": "entityType",
329
459
  "type": "string",
330
- "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
331
- "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
460
+ "info": "entity of which to retrieve",
461
+ "required": true,
332
462
  "schema": {
333
- "title": "restMethod",
463
+ "title": "entityType",
334
464
  "type": "string"
335
- },
336
- "required": true
465
+ }
337
466
  },
338
467
  {
339
- "name": "queryData",
468
+ "name": "options",
340
469
  "type": "object",
341
- "info": "the query parameters to be put on the url (optional)",
342
- "description": "the query parameters to be put on the url (optional)",
470
+ "info": "settings of which data to return and how to return it",
471
+ "required": false,
343
472
  "schema": {
344
- "title": "queryData",
473
+ "title": "options",
345
474
  "type": "object"
346
- },
347
- "required": false
348
- },
475
+ }
476
+ }
477
+ ],
478
+ "output": {
479
+ "name": "result",
480
+ "type": "object",
481
+ "description": "A JSON Object containing status, code and the result",
482
+ "schema": {
483
+ "title": "result",
484
+ "type": "object"
485
+ }
486
+ },
487
+ "roles": [
488
+ "admin"
489
+ ],
490
+ "route": {
491
+ "verb": "POST",
492
+ "path": "/iapRetrieveEntitiesCache"
493
+ },
494
+ "task": true
495
+ },
496
+ {
497
+ "name": "getDevice",
498
+ "summary": "Get the Appliance",
499
+ "description": "Get the Appliance",
500
+ "input": [
349
501
  {
350
- "name": "requestBody",
351
- "type": "object",
352
- "info": "the payload to be sent with the request (optional)",
353
- "description": "the payload to be sent with the request (optional)",
502
+ "name": "deviceName",
503
+ "type": "string",
504
+ "info": "An Appliance Device Name",
505
+ "required": true,
354
506
  "schema": {
355
- "title": "requestBody",
356
- "type": "object"
357
- },
358
- "required": false
359
- },
507
+ "title": "deviceName",
508
+ "type": "string"
509
+ }
510
+ }
511
+ ],
512
+ "output": {
513
+ "name": "result",
514
+ "type": "object",
515
+ "description": "A JSON Object containing status, code and the result",
516
+ "schema": {
517
+ "title": "result",
518
+ "type": "object"
519
+ }
520
+ },
521
+ "roles": [
522
+ "admin"
523
+ ],
524
+ "route": {
525
+ "verb": "POST",
526
+ "path": "/getDevice"
527
+ },
528
+ "task": false
529
+ },
530
+ {
531
+ "name": "getDevicesFiltered",
532
+ "summary": "Get Appliances that match the filter",
533
+ "description": "Get Appliances that match the filter",
534
+ "input": [
360
535
  {
361
- "name": "addlHeaders",
536
+ "name": "options",
362
537
  "type": "object",
363
- "info": "additional headers to be put on the call (optional)",
364
- "description": "additional headers to be put on the call (optional)",
538
+ "info": "options - e.g. { 'start': 1, 'limit': 20, 'filter': { 'name': 'abc123' } }",
539
+ "required": true,
365
540
  "schema": {
366
- "title": "addlHeaders",
541
+ "title": "options",
367
542
  "type": "object"
368
- },
369
- "required": false
543
+ }
370
544
  }
371
545
  ],
372
546
  "output": {
373
547
  "name": "result",
374
- "type": "object",
548
+ "type": "array",
375
549
  "description": "A JSON Object containing status, code and the result",
376
550
  "schema": {
377
551
  "title": "result",
378
- "type": "object"
552
+ "type": "array"
379
553
  }
380
554
  },
381
555
  "roles": [
@@ -383,7 +557,436 @@
383
557
  ],
384
558
  "route": {
385
559
  "verb": "POST",
386
- "path": "/genericAdapterRequest"
560
+ "path": "/getDevicesFiltered"
561
+ },
562
+ "task": false
563
+ },
564
+ {
565
+ "name": "isAlive",
566
+ "summary": "Checks the status for the provided Appliance",
567
+ "description": "Checks the status for the provided Appliance",
568
+ "input": [
569
+ {
570
+ "name": "deviceName",
571
+ "type": "string",
572
+ "info": "An Appliance Device Name",
573
+ "required": true,
574
+ "schema": {
575
+ "title": "deviceName",
576
+ "type": "string"
577
+ }
578
+ }
579
+ ],
580
+ "output": {
581
+ "name": "result",
582
+ "type": "boolean",
583
+ "description": "A JSON Object containing status, code and the result",
584
+ "schema": {
585
+ "title": "result",
586
+ "type": "boolean"
587
+ }
588
+ },
589
+ "roles": [
590
+ "admin"
591
+ ],
592
+ "route": {
593
+ "verb": "POST",
594
+ "path": "/isAlive"
595
+ },
596
+ "task": false
597
+ },
598
+ {
599
+ "name": "getConfig",
600
+ "summary": "Gets a config for the provided Appliance",
601
+ "description": "Gets a config for the provided Appliance",
602
+ "input": [
603
+ {
604
+ "name": "deviceName",
605
+ "type": "string",
606
+ "info": "An Appliance Device Name",
607
+ "required": true,
608
+ "schema": {
609
+ "title": "deviceName",
610
+ "type": "string"
611
+ }
612
+ },
613
+ {
614
+ "name": "format",
615
+ "type": "string",
616
+ "info": "The format to be returned - this is ignored as we always return json",
617
+ "required": false,
618
+ "schema": {
619
+ "title": "format",
620
+ "type": "string"
621
+ }
622
+ }
623
+ ],
624
+ "output": {
625
+ "name": "result",
626
+ "type": "object",
627
+ "description": "A JSON Object containing status, code and the result",
628
+ "schema": {
629
+ "title": "result",
630
+ "type": "object"
631
+ }
632
+ },
633
+ "roles": [
634
+ "admin"
635
+ ],
636
+ "route": {
637
+ "verb": "POST",
638
+ "path": "/getConfig"
639
+ },
640
+ "task": false
641
+ },
642
+ {
643
+ "name": "iapGetDeviceCount",
644
+ "summary": "Gets a device count from the system",
645
+ "description": "Gets a device count from the system",
646
+ "input": [],
647
+ "output": {
648
+ "name": "result",
649
+ "type": "object",
650
+ "description": "A JSON Object containing status, code and the result",
651
+ "schema": {
652
+ "title": "result",
653
+ "type": "object"
654
+ }
655
+ },
656
+ "roles": [
657
+ "admin"
658
+ ],
659
+ "route": {
660
+ "verb": "POST",
661
+ "path": "/iapGetDeviceCount"
662
+ },
663
+ "task": false
664
+ },
665
+ {
666
+ "name": "iapExpandedGenericAdapterRequest",
667
+ "summary": "Makes the requested generic call with additional options",
668
+ "description": "Makes the requested generic call with additional options via metadata",
669
+ "input": [
670
+ {
671
+ "name": "metadata",
672
+ "type": "object",
673
+ "info": "metadata for the call (optional)",
674
+ "description": "metadata for the call - allows for many enhancements (optional)",
675
+ "schema": {
676
+ "title": "metadata",
677
+ "type": "object"
678
+ },
679
+ "required": false
680
+ },
681
+ {
682
+ "name": "uriPath",
683
+ "type": "string",
684
+ "info": "the path of the api call - do not include the host, port, base path or version",
685
+ "description": "the path of the api call",
686
+ "schema": {
687
+ "title": "uriPath",
688
+ "type": "string"
689
+ },
690
+ "required": false
691
+ },
692
+ {
693
+ "name": "restMethod",
694
+ "type": "string",
695
+ "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
696
+ "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
697
+ "schema": {
698
+ "title": "restMethod",
699
+ "type": "string"
700
+ },
701
+ "required": false
702
+ },
703
+ {
704
+ "name": "pathVars",
705
+ "type": "object",
706
+ "info": "the parameters to be put within the url path (optional)",
707
+ "description": "the parameters to be put within the url path (optional)",
708
+ "schema": {
709
+ "title": "pathVars",
710
+ "type": "object"
711
+ },
712
+ "required": false
713
+ },
714
+ {
715
+ "name": "queryData",
716
+ "type": "object",
717
+ "info": "the query parameters to be put on the url (optional)",
718
+ "description": "the query parameters to be put on the url (optional)",
719
+ "schema": {
720
+ "title": "queryData",
721
+ "type": "object"
722
+ },
723
+ "required": false
724
+ },
725
+ {
726
+ "name": "requestBody",
727
+ "type": "object",
728
+ "info": "the payload to be sent with the request (optional)",
729
+ "description": "the payload to be sent with the request (optional)",
730
+ "schema": {
731
+ "title": "requestBody",
732
+ "type": "object"
733
+ },
734
+ "required": false
735
+ },
736
+ {
737
+ "name": "addlHeaders",
738
+ "type": "object",
739
+ "info": "additional headers to be put on the call (optional)",
740
+ "description": "additional headers to be put on the call (optional)",
741
+ "schema": {
742
+ "title": "addlHeaders",
743
+ "type": "object"
744
+ },
745
+ "required": false
746
+ }
747
+ ],
748
+ "output": {
749
+ "name": "result",
750
+ "type": "object",
751
+ "description": "A JSON Object containing status, code and the result",
752
+ "schema": {
753
+ "title": "result",
754
+ "type": "object"
755
+ }
756
+ },
757
+ "roles": [
758
+ "admin"
759
+ ],
760
+ "route": {
761
+ "verb": "POST",
762
+ "path": "/iapExpandedGenericAdapterRequest"
763
+ },
764
+ "task": true
765
+ },
766
+ {
767
+ "name": "genericAdapterRequest",
768
+ "summary": "Makes the requested generic call",
769
+ "description": "Makes the requested generic call",
770
+ "input": [
771
+ {
772
+ "name": "uriPath",
773
+ "type": "string",
774
+ "info": "the path of the api call - do not include the host, port, base path or version",
775
+ "description": "the path of the api call",
776
+ "schema": {
777
+ "title": "uriPath",
778
+ "type": "string"
779
+ },
780
+ "required": true
781
+ },
782
+ {
783
+ "name": "restMethod",
784
+ "type": "string",
785
+ "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
786
+ "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
787
+ "schema": {
788
+ "title": "restMethod",
789
+ "type": "string"
790
+ },
791
+ "required": true
792
+ },
793
+ {
794
+ "name": "queryData",
795
+ "type": "object",
796
+ "info": "the query parameters to be put on the url (optional)",
797
+ "description": "the query parameters to be put on the url (optional)",
798
+ "schema": {
799
+ "title": "queryData",
800
+ "type": "object"
801
+ },
802
+ "required": false
803
+ },
804
+ {
805
+ "name": "requestBody",
806
+ "type": "object",
807
+ "info": "the payload to be sent with the request (optional)",
808
+ "description": "the payload to be sent with the request (optional)",
809
+ "schema": {
810
+ "title": "requestBody",
811
+ "type": "object"
812
+ },
813
+ "required": false
814
+ },
815
+ {
816
+ "name": "addlHeaders",
817
+ "type": "object",
818
+ "info": "additional headers to be put on the call (optional)",
819
+ "description": "additional headers to be put on the call (optional)",
820
+ "schema": {
821
+ "title": "addlHeaders",
822
+ "type": "object"
823
+ },
824
+ "required": false
825
+ }
826
+ ],
827
+ "output": {
828
+ "name": "result",
829
+ "type": "object",
830
+ "description": "A JSON Object containing status, code and the result",
831
+ "schema": {
832
+ "title": "result",
833
+ "type": "object"
834
+ }
835
+ },
836
+ "roles": [
837
+ "admin"
838
+ ],
839
+ "route": {
840
+ "verb": "POST",
841
+ "path": "/genericAdapterRequest"
842
+ },
843
+ "task": true
844
+ },
845
+ {
846
+ "name": "genericAdapterRequestNoBasePath",
847
+ "summary": "Makes the requested generic call",
848
+ "description": "Makes the requested generic call",
849
+ "input": [
850
+ {
851
+ "name": "uriPath",
852
+ "type": "string",
853
+ "info": "the path of the api call - do not include the host, port, base path or version",
854
+ "description": "the path of the api call",
855
+ "schema": {
856
+ "title": "uriPath",
857
+ "type": "string"
858
+ },
859
+ "required": true
860
+ },
861
+ {
862
+ "name": "restMethod",
863
+ "type": "string",
864
+ "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
865
+ "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
866
+ "schema": {
867
+ "title": "restMethod",
868
+ "type": "string"
869
+ },
870
+ "required": true
871
+ },
872
+ {
873
+ "name": "queryData",
874
+ "type": "object",
875
+ "info": "the query parameters to be put on the url (optional)",
876
+ "description": "the query parameters to be put on the url (optional)",
877
+ "schema": {
878
+ "title": "queryData",
879
+ "type": "object"
880
+ },
881
+ "required": false
882
+ },
883
+ {
884
+ "name": "requestBody",
885
+ "type": "object",
886
+ "info": "the payload to be sent with the request (optional)",
887
+ "description": "the payload to be sent with the request (optional)",
888
+ "schema": {
889
+ "title": "requestBody",
890
+ "type": "object"
891
+ },
892
+ "required": false
893
+ },
894
+ {
895
+ "name": "addlHeaders",
896
+ "type": "object",
897
+ "info": "additional headers to be put on the call (optional)",
898
+ "description": "additional headers to be put on the call (optional)",
899
+ "schema": {
900
+ "title": "addlHeaders",
901
+ "type": "object"
902
+ },
903
+ "required": false
904
+ }
905
+ ],
906
+ "output": {
907
+ "name": "result",
908
+ "type": "object",
909
+ "description": "A JSON Object containing status, code and the result",
910
+ "schema": {
911
+ "title": "result",
912
+ "type": "object"
913
+ }
914
+ },
915
+ "roles": [
916
+ "admin"
917
+ ],
918
+ "route": {
919
+ "verb": "POST",
920
+ "path": "/genericAdapterRequestNoBasePath"
921
+ },
922
+ "task": true
923
+ },
924
+ {
925
+ "name": "iapRunAdapterLint",
926
+ "summary": "Run the adapter lint script to return the results",
927
+ "description": "Run the adapter lint script to return the results",
928
+ "input": [],
929
+ "output": {
930
+ "name": "result",
931
+ "type": "string",
932
+ "description": "A string containing the run results",
933
+ "schema": {
934
+ "title": "result",
935
+ "type": "string"
936
+ }
937
+ },
938
+ "roles": [
939
+ "admin"
940
+ ],
941
+ "route": {
942
+ "verb": "GET",
943
+ "path": "/iapRunAdapterLint"
944
+ },
945
+ "task": true
946
+ },
947
+ {
948
+ "name": "iapRunAdapterTests",
949
+ "summary": "Run the adapter test scripts (baseunit and unit) to return the results",
950
+ "description": "Run the adapter test scripts (baseunit and unit) to return the results",
951
+ "input": [],
952
+ "output": {
953
+ "name": "result",
954
+ "type": "object",
955
+ "description": "A JSON Object containing status, code and the result",
956
+ "schema": {
957
+ "title": "result",
958
+ "type": "object"
959
+ }
960
+ },
961
+ "roles": [
962
+ "admin"
963
+ ],
964
+ "route": {
965
+ "verb": "GET",
966
+ "path": "/iapRunAdapterTests"
967
+ },
968
+ "task": true
969
+ },
970
+ {
971
+ "name": "iapGetAdapterInventory",
972
+ "summary": "Provide inventory information abbout the adapter",
973
+ "description": "Provide inventory information abbout the adapter",
974
+ "input": [],
975
+ "output": {
976
+ "name": "result",
977
+ "type": "object",
978
+ "description": "A JSON Object containing status, code and the result",
979
+ "schema": {
980
+ "title": "result",
981
+ "type": "object"
982
+ }
983
+ },
984
+ "roles": [
985
+ "admin"
986
+ ],
987
+ "route": {
988
+ "verb": "GET",
989
+ "path": "/iapGetAdapterInventory"
387
990
  },
388
991
  "task": true
389
992
  },