blob: 5c2168ecb98fe28d8b576630aa86184f8f5e06d5 [file] [log] [blame]
DenisGNoonandbf44992024-04-25 18:28:38 +01001{
2 "info": {
3 "_postman_id": "79d4786e-1ada-4252-afc4-58c7c3f4da70",
4 "name": "Service Manager Demo Collection",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6 "_exporter_id": "30653024"
7 },
8 "item": [
9 {
10 "name": "Service Manager demo",
11 "item": [
12 {
13 "name": "rApp register K8s",
14 "item": [
15 {
16 "name": "health check service manager",
17 "protocolProfileBehavior": {
18 "disableBodyPruning": true
19 },
20 "request": {
21 "method": "GET",
22 "header": [],
23 "body": {
24 "mode": "raw",
25 "raw": "",
26 "options": {
27 "raw": {
28 "language": "json"
29 }
30 }
31 },
32 "url": {
33 "raw": "http://10.101.1.101:31575/",
34 "protocol": "http",
35 "host": [
36 "10",
37 "101",
38 "1",
39 "101"
40 ],
41 "port": "31575",
42 "path": [
43 ""
44 ]
45 },
46 "description": "StartFragment\n\nRegisters a new API Provider domain with API provider domain functions profiles.\n\nEndFragme"
47 },
48 "response": []
49 },
50 {
51 "name": "1. rApp registers as Kong provider",
52 "request": {
53 "method": "POST",
54 "header": [],
55 "body": {
56 "mode": "raw",
57 "raw": "{\n \"apiProvDomInfo\": \"Kong\",\n \"apiProvFuncs\": [\n {\n \"apiProvFuncInfo\": \"rAppKong as APF\",\n \"apiProvFuncRole\": \"APF\",\n \"regInfo\": {\n \"apiProvPubKey\": \"APF-PublicKey\"\n }\n },\n {\n \"apiProvFuncInfo\": \"rAppKong as AEF\",\n \"apiProvFuncRole\": \"AEF\",\n \"regInfo\": {\n \"apiProvPubKey\": \"AEF-PublicKey\"\n }\n }\n ],\n \"regSec\": \"PSK1\"\n}",
58 "options": {
59 "raw": {
60 "language": "json"
61 }
62 }
63 },
64 "url": {
65 "raw": "http://10.101.1.101:31575/api-provider-management/v1/registrations",
66 "protocol": "http",
67 "host": [
68 "10",
69 "101",
70 "1",
71 "101"
72 ],
73 "port": "31575",
74 "path": [
75 "api-provider-management",
76 "v1",
77 "registrations"
78 ]
79 },
80 "description": "StartFragment\n\nRegisters a new API Provider domain with API provider domain functions profiles.\n\nEndFragme"
81 },
82 "response": []
83 },
84 {
85 "name": "1. rApp registers as Kong provider",
86 "request": {
87 "method": "DELETE",
88 "header": [],
89 "body": {
90 "mode": "raw",
91 "raw": "",
92 "options": {
93 "raw": {
94 "language": "json"
95 }
96 }
97 },
98 "url": {
99 "raw": "http://10.101.1.101:31575/api-provider-management/v1/registrations/domain_id_Kong",
100 "protocol": "http",
101 "host": [
102 "10",
103 "101",
104 "1",
105 "101"
106 ],
107 "port": "31575",
108 "path": [
109 "api-provider-management",
110 "v1",
111 "registrations",
112 "domain_id_Kong"
113 ]
114 },
115 "description": "StartFragment\n\nRegisters a new API Provider domain with API provider domain functions profiles.\n\nEndFragme"
116 },
117 "response": []
118 }
119 ]
120 },
121 {
122 "name": "rApp publish",
123 "item": [
124 {
125 "name": "2. rApp publishes its API to Kong Service Stub",
126 "request": {
127 "method": "POST",
128 "header": [],
129 "body": {
130 "mode": "raw",
131 "raw": "{\n \"AefProfiles\": [\n {\n \"AefId\": \"AEF_id_rAppKong_as_AEF\",\n \"interfaceDescriptions\": [\n {\n \"ipv4Addr\": \"10.101.1.101\",\n \"port\": 30951,\n \"securityMethods\": [\n \"PKI\"\n ]\n }\n ],\n \"DomainName\": \"Kong\",\n \"Protocol\": \"HTTP_1_1\",\n \"Versions\": [\n {\n \"ApiVersion\": \"\",\n \"Resources\": [\n {\n \"CommType\": \"REQUEST_RESPONSE\",\n \"Operations\": [\n \"GET\"\n ],\n \"ResourceName\": \"helloworld\",\n \"Uri\": \"/helloworld\"\n },\n {\n \"CommType\": \"REQUEST_RESPONSE\",\n \"Operations\": [\n \"GET\"\n ],\n \"ResourceName\": \"helloworld_sme\",\n \"Uri\": \"/helloworld/sme\"\n }\n ]\n }\n ]\n }\n ],\n \"ApiName\": \"helloworld\",\n \"Description\": \"Description,namespace,repoName,chartName,releaseName\"\n}",
132 "options": {
133 "raw": {
134 "language": "json"
135 }
136 }
137 },
138 "url": {
139 "raw": "http://10.101.1.101:31575/published-apis/v1/APF_id_rAppKong_as_APF/service-apis",
140 "protocol": "http",
141 "host": [
142 "10",
143 "101",
144 "1",
145 "101"
146 ],
147 "port": "31575",
148 "path": [
149 "published-apis",
150 "v1",
151 "APF_id_rAppKong_as_APF",
152 "service-apis"
153 ]
154 },
155 "description": "Publish a new API"
156 },
157 "response": []
158 },
159 {
160 "name": "2. rApp publishes its API to Kong",
161 "request": {
162 "method": "DELETE",
163 "header": [],
164 "body": {
165 "mode": "raw",
166 "raw": "",
167 "options": {
168 "raw": {
169 "language": "json"
170 }
171 }
172 },
173 "url": {
174 "raw": "http://10.101.1.101:31575/published-apis/v1/APF_id_rAppKong_as_APF/service-apis/api_id_helloworld",
175 "protocol": "http",
176 "host": [
177 "10",
178 "101",
179 "1",
180 "101"
181 ],
182 "port": "31575",
183 "path": [
184 "published-apis",
185 "v1",
186 "APF_id_rAppKong_as_APF",
187 "service-apis",
188 "api_id_helloworld"
189 ]
190 },
191 "description": "Publish a new API"
192 },
193 "response": []
194 },
195 {
196 "name": "3. rApp gets all published APIs",
197 "protocolProfileBehavior": {
198 "disableBodyPruning": true
199 },
200 "request": {
201 "method": "GET",
202 "header": [],
203 "body": {
204 "mode": "raw",
205 "raw": "",
206 "options": {
207 "raw": {
208 "language": "json"
209 }
210 }
211 },
212 "url": {
213 "raw": "http://10.101.1.101:31575/published-apis/v1/APF_id_rAppKong_as_APF/service-apis",
214 "protocol": "http",
215 "host": [
216 "10",
217 "101",
218 "1",
219 "101"
220 ],
221 "port": "31575",
222 "path": [
223 "published-apis",
224 "v1",
225 "APF_id_rAppKong_as_APF",
226 "service-apis"
227 ]
228 },
229 "description": "Publish a new API"
230 },
231 "response": []
232 },
233 {
234 "name": "4. rApp gets a published API",
235 "protocolProfileBehavior": {
236 "disableBodyPruning": true
237 },
238 "request": {
239 "method": "GET",
240 "header": [],
241 "body": {
242 "mode": "raw",
243 "raw": "",
244 "options": {
245 "raw": {
246 "language": "json"
247 }
248 }
249 },
250 "url": {
251 "raw": "http://10.101.1.101:31575/published-apis/v1/APF_id_rAppKong_as_APF/service-apis/api_id_helloworld",
252 "protocol": "http",
253 "host": [
254 "10",
255 "101",
256 "1",
257 "101"
258 ],
259 "port": "31575",
260 "path": [
261 "published-apis",
262 "v1",
263 "APF_id_rAppKong_as_APF",
264 "service-apis",
265 "api_id_helloworld"
266 ]
267 },
268 "description": "Publish a new API"
269 },
270 "response": []
271 }
272 ]
273 },
274 {
275 "name": "rApp onboarding",
276 "item": [
277 {
278 "name": "5. rApp onboards itself as invoker",
279 "request": {
280 "method": "POST",
281 "header": [],
282 "body": {
283 "mode": "raw",
284 "raw": "{\n \"apiInvokerInformation\": \"rAppKong as invoker 1\",\n\t \"apiList\": [\n {\n \"aefProfiles\": [\n {\n \"aefId\": \"AEF_id_rAppKong_as_AEF\",\n \"domainName\": \"kong\",\n \"interfaceDescriptions\": [\n {\n \"ipv4Addr\": \"10.101.1.101\",\n \"port\": 32080\n }\n ],\n \"protocol\": \"HTTP_1_1\",\n \"versions\": [\n {\n \"apiVersion\": \"\",\n \"resources\": [\n {\n \"commType\": \"REQUEST_RESPONSE\",\n \"operations\": [\n \"GET\"\n ],\n \"resourceName\": \"helloworld\",\n \"uri\": \"/helloworld\"\n },\n {\n \"commType\": \"REQUEST_RESPONSE\",\n \"operations\": [\n \"GET\"\n ],\n \"resourceName\": \"helloworld_sme\",\n \"uri\": \"/helloworld/sme\"\n }\n ]\n }\n ]\n }\n ],\n \"apiId\": \"api_id_helloworld\",\n \"apiName\": \"helloworld\",\n \"description\": \"Description,namespace,repoName,chartName,releaseName\"\n }\n\t],\n \"NotificationDestination\": \"http://invoker-app-kong:8086/callback\",\n \"onboardingInformation\": {\n\t\t\"apiInvokerPublicKey\": \"{PUBLIC_KEY_INVOKER_KONG}\",\n\t\t\"apiInvokerCertificate\": \"apiInvokerCertificate\"\n },\n \"requestTestNotification\": true\n}",
285 "options": {
286 "raw": {
287 "language": "json"
288 }
289 }
290 },
291 "url": {
292 "raw": "http://10.101.1.101:31575/api-invoker-management/v1/onboardedInvokers",
293 "protocol": "http",
294 "host": [
295 "10",
296 "101",
297 "1",
298 "101"
299 ],
300 "port": "31575",
301 "path": [
302 "api-invoker-management",
303 "v1",
304 "onboardedInvokers"
305 ]
306 },
307 "description": "Creates a new individual API Invoker profile."
308 },
309 "response": []
310 },
311 {
312 "name": "5. rApp onboards itself as invoker - empty apiList",
313 "request": {
314 "method": "POST",
315 "header": [],
316 "body": {
317 "mode": "raw",
318 "raw": "{\n \"apiInvokerInformation\": \"rAppKong as invoker 1\",\n\t\"apiList\": [],\n \"NotificationDestination\": \"http://invoker-app-kong:8086/callback\",\n \"onboardingInformation\": {\n\t\t\"apiInvokerPublicKey\": \"{PUBLIC_KEY_INVOKER_KONG}\",\n\t\t\"apiInvokerCertificate\": \"apiInvokerCertificate\"\n },\n \"requestTestNotification\": true\n}",
319 "options": {
320 "raw": {
321 "language": "json"
322 }
323 }
324 },
325 "url": {
326 "raw": "http://10.101.1.101:31575/api-invoker-management/v1/onboardedInvokers",
327 "protocol": "http",
328 "host": [
329 "10",
330 "101",
331 "1",
332 "101"
333 ],
334 "port": "31575",
335 "path": [
336 "api-invoker-management",
337 "v1",
338 "onboardedInvokers"
339 ]
340 },
341 "description": "Creates a new individual API Invoker profile."
342 },
343 "response": []
344 },
345 {
346 "name": "5. rApp onboards itself as invoker",
347 "request": {
348 "method": "DELETE",
349 "header": [],
350 "body": {
351 "mode": "raw",
352 "raw": "",
353 "options": {
354 "raw": {
355 "language": "json"
356 }
357 }
358 },
359 "url": {
360 "raw": "http://10.101.1.101:31575/api-invoker-management/v1/onboardedInvokers/api_invoker_id_rAppKong_as_invoker_1",
361 "protocol": "http",
362 "host": [
363 "10",
364 "101",
365 "1",
366 "101"
367 ],
368 "port": "31575",
369 "path": [
370 "api-invoker-management",
371 "v1",
372 "onboardedInvokers",
373 "api_invoker_id_rAppKong_as_invoker_1"
374 ]
375 },
376 "description": "Creates a new individual API Invoker profile."
377 },
378 "response": []
379 }
380 ]
381 },
382 {
383 "name": "rApp discovery",
384 "item": [
385 {
386 "name": "6. Invoker discovers APIs",
387 "request": {
388 "method": "GET",
389 "header": [],
390 "url": {
391 "raw": "http://10.101.1.101:31575/service-apis/v1/allServiceAPIs?api-invoker-id=api_invoker_id_rAppKong_as_invoker_1",
392 "protocol": "http",
393 "host": [
394 "10",
395 "101",
396 "1",
397 "101"
398 ],
399 "port": "31575",
400 "path": [
401 "service-apis",
402 "v1",
403 "allServiceAPIs"
404 ],
405 "query": [
406 {
407 "key": "aef-id",
408 "value": "",
409 "disabled": true
410 },
411 {
412 "key": "api-cat",
413 "value": "",
414 "disabled": true
415 },
416 {
417 "key": "api-name",
418 "value": "",
419 "disabled": true
420 },
421 {
422 "key": "api-version",
423 "value": "",
424 "disabled": true
425 },
426 {
427 "key": "comm-type",
428 "value": "",
429 "disabled": true
430 },
431 {
432 "key": "data-format",
433 "value": "",
434 "disabled": true
435 },
436 {
437 "key": "preferred-aef-loc",
438 "value": "",
439 "disabled": true
440 },
441 {
442 "key": "protocol",
443 "value": "",
444 "disabled": true
445 },
446 {
447 "key": "supported-features",
448 "value": "",
449 "disabled": true
450 },
451 {
452 "key": "api-invoker-id",
453 "value": "api_invoker_id_rAppKong_as_invoker_1"
454 }
455 ]
456 }
457 },
458 "response": []
459 },
460 {
461 "name": "7. Invoker discovers APIs with api-invoker-id, aef-id",
462 "request": {
463 "method": "GET",
464 "header": [],
465 "url": {
466 "raw": "http://10.101.1.101:31575/service-apis/v1/allServiceAPIs?api-invoker-id=api_invoker_id_rAppKong_as_invoker_1&aef-id=AEF_id_rAppKong_as_AEF",
467 "protocol": "http",
468 "host": [
469 "10",
470 "101",
471 "1",
472 "101"
473 ],
474 "port": "31575",
475 "path": [
476 "service-apis",
477 "v1",
478 "allServiceAPIs"
479 ],
480 "query": [
481 {
482 "key": "aef-id",
483 "value": "",
484 "disabled": true
485 },
486 {
487 "key": "api-cat",
488 "value": "",
489 "disabled": true
490 },
491 {
492 "key": "api-name",
493 "value": "",
494 "disabled": true
495 },
496 {
497 "key": "api-version",
498 "value": "",
499 "disabled": true
500 },
501 {
502 "key": "comm-type",
503 "value": "",
504 "disabled": true
505 },
506 {
507 "key": "data-format",
508 "value": "",
509 "disabled": true
510 },
511 {
512 "key": "preferred-aef-loc",
513 "value": "",
514 "disabled": true
515 },
516 {
517 "key": "protocol",
518 "value": "",
519 "disabled": true
520 },
521 {
522 "key": "supported-features",
523 "value": "",
524 "disabled": true
525 },
526 {
527 "key": "api-invoker-id",
528 "value": "api_invoker_id_rAppKong_as_invoker_1"
529 },
530 {
531 "key": "aef-id",
532 "value": "AEF_id_rAppKong_as_AEF"
533 }
534 ]
535 }
536 },
537 "response": []
538 },
539 {
540 "name": "8. Invoker discovers APIs with api-invoker-id, apiName",
541 "request": {
542 "method": "GET",
543 "header": [],
544 "url": {
545 "raw": "http://10.101.1.101:31575/service-apis/v1/allServiceAPIs?api-invoker-id=api_invoker_id_rAppKong_as_invoker_1&apiName=helloworld",
546 "protocol": "http",
547 "host": [
548 "10",
549 "101",
550 "1",
551 "101"
552 ],
553 "port": "31575",
554 "path": [
555 "service-apis",
556 "v1",
557 "allServiceAPIs"
558 ],
559 "query": [
560 {
561 "key": "aef-id",
562 "value": "",
563 "disabled": true
564 },
565 {
566 "key": "api-cat",
567 "value": "",
568 "disabled": true
569 },
570 {
571 "key": "api-name",
572 "value": "",
573 "disabled": true
574 },
575 {
576 "key": "api-version",
577 "value": "",
578 "disabled": true
579 },
580 {
581 "key": "comm-type",
582 "value": "",
583 "disabled": true
584 },
585 {
586 "key": "data-format",
587 "value": "",
588 "disabled": true
589 },
590 {
591 "key": "preferred-aef-loc",
592 "value": "",
593 "disabled": true
594 },
595 {
596 "key": "protocol",
597 "value": "",
598 "disabled": true
599 },
600 {
601 "key": "supported-features",
602 "value": "",
603 "disabled": true
604 },
605 {
606 "key": "api-invoker-id",
607 "value": "api_invoker_id_rAppKong_as_invoker_1"
608 },
609 {
610 "key": "apiName",
611 "value": "helloworld"
612 }
613 ]
614 }
615 },
616 "response": []
617 }
618 ]
619 },
620 {
621 "name": "Kong",
622 "item": [
623 {
624 "name": "Get Routes",
625 "request": {
626 "method": "GET",
627 "header": [],
628 "url": {
629 "raw": "http://10.101.1.101:32081/routes",
630 "protocol": "http",
631 "host": [
632 "10",
633 "101",
634 "1",
635 "101"
636 ],
637 "port": "32081",
638 "path": [
639 "routes"
640 ]
641 }
642 },
643 "response": []
644 },
645 {
646 "name": "Get Routes with Tags",
647 "request": {
648 "method": "GET",
649 "header": [],
650 "url": {
651 "raw": "http://10.101.1.101:32081/routes/?tags=apfId%3A%20APF_id_rAppKong_as_APF",
652 "protocol": "http",
653 "host": [
654 "10",
655 "101",
656 "1",
657 "101"
658 ],
659 "port": "32081",
660 "path": [
661 "routes",
662 ""
663 ],
664 "query": [
665 {
666 "key": "tags",
667 "value": "apfId%3A%20APF_id_rAppKong_as_APF"
668 }
669 ]
670 }
671 },
672 "response": []
673 },
674 {
675 "name": "Get Services",
676 "request": {
677 "method": "GET",
678 "header": [],
679 "url": {
680 "raw": "http://10.101.1.101:32081/services",
681 "protocol": "http",
682 "host": [
683 "10",
684 "101",
685 "1",
686 "101"
687 ],
688 "port": "32081",
689 "path": [
690 "services"
691 ]
692 }
693 },
694 "response": []
695 },
696 {
697 "name": "Get Services with Tags",
698 "request": {
699 "method": "GET",
700 "header": [],
701 "url": {
702 "raw": "http://10.101.1.101:32081/services/?tags=apfId%3A%20APF_id_rAppKong_as_APF",
703 "protocol": "http",
704 "host": [
705 "10",
706 "101",
707 "1",
708 "101"
709 ],
710 "port": "32081",
711 "path": [
712 "services",
713 ""
714 ],
715 "query": [
716 {
717 "key": "tags",
718 "value": "apfId%3A%20APF_id_rAppKong_as_APF"
719 }
720 ]
721 }
722 },
723 "response": []
724 }
725 ]
726 }
727 ]
728 }
729 ]
730}