Adapt tests for OpenApi
[netconf.git] / restconf / restconf-openapi / src / test / resources / operational-document / device-all.json
1 {
2   "openapi": "3.0.3",
3   "info": {
4     "version": "1.0.0",
5     "title": "123 modules of RESTCONF",
6     "description": "We are providing full API for configurational data which can be edited (by POST, PUT, PATCH and DELETE).\nFor operational data we only provide GET API.\n\nFor majority of request you can see only config data in examples. That is because we can show only one example\nper request. The exception when you can see operational data in example is when data are representing\noperational (config false) container with no config data in it."
7   },
8   "servers": [
9     {
10       "url": "http://localhost:8181/"
11     }
12   ],
13   "paths": {
14     "/rests/operations/nodes/node=123/yang-ext:mount/action-types:list={name}/list-action": {
15       "post": {
16         "tags": [
17           "123 action-types"
18         ],
19         "parameters": [
20           {
21             "name": "name",
22             "in": "path",
23             "required": true,
24             "schema": {
25               "type": "string"
26             }
27           }
28         ],
29         "requestBody": {
30           "description": "list-action_input",
31           "content": {
32             "application/xml": {
33               "schema": {
34                 "$ref": "#/components/schemas/action-types_list-action_input"
35               }
36             },
37             "application/json": {
38               "schema": {
39                 "properties": {
40                   "input": {
41                     "$ref": "#/components/schemas/action-types_list-action_input",
42                     "type": "object"
43                   }
44                 }
45               }
46             }
47           }
48         },
49         "responses": {
50           "200": {
51             "description": "RPC list-action success",
52             "content": {
53               "application/xml": {
54                 "schema": {
55                   "$ref": "#/components/schemas/action-types_list-action_output"
56                 }
57               },
58               "application/json": {
59                 "schema": {
60                   "$ref": "#/components/schemas/action-types_list-action_output"
61                 }
62               }
63             }
64           }
65         },
66         "description": "",
67         "summary": "POST - 123 - action-types - list-action"
68       }
69     },
70     "/rests/operations/nodes/node=123/yang-ext:mount/action-types:container/container-action": {
71       "post": {
72         "tags": [
73           "123 action-types"
74         ],
75         "parameters": [],
76         "requestBody": {
77           "description": "container-action_input",
78           "content": {
79             "application/xml": {
80               "schema": {
81                 "$ref": "#/components/schemas/action-types_container-action_input"
82               }
83             },
84             "application/json": {
85               "schema": {
86                 "properties": {
87                   "input": {
88                     "$ref": "#/components/schemas/action-types_container-action_input",
89                     "type": "object"
90                   }
91                 }
92               }
93             }
94           }
95         },
96         "responses": {
97           "200": {
98             "description": "RPC container-action success",
99             "content": {
100               "application/xml": {
101                 "schema": {
102                   "$ref": "#/components/schemas/action-types_container-action_output"
103                 }
104               },
105               "application/json": {
106                 "schema": {
107                   "$ref": "#/components/schemas/action-types_container-action_output"
108                 }
109               }
110             }
111           }
112         },
113         "description": "",
114         "summary": "POST - 123 - action-types - container-action"
115       }
116     },
117     "/rests/data/nodes/node=123/yang-ext:mount/action-types:list={name}": {
118       "get": {
119         "tags": [
120           "123 action-types"
121         ],
122         "parameters": [
123           {
124             "name": "name",
125             "in": "path",
126             "required": true,
127             "schema": {
128               "type": "string"
129             }
130           },
131           {
132             "name": "content",
133             "in": "query",
134             "required": false,
135             "schema": {
136               "enum": [
137                 "config",
138                 "nonconfig",
139                 "all"
140               ],
141               "type": "string"
142             }
143           }
144         ],
145         "responses": {
146           "200": {
147             "description": "200",
148             "content": {
149               "application/xml": {
150                 "schema": {
151                   "$ref": "#/components/schemas/action-types_list"
152                 }
153               },
154               "application/json": {
155                 "schema": {
156                   "properties": {
157                     "list": {
158                       "type": "array",
159                       "items": {
160                         "$ref": "#/components/schemas/action-types_list",
161                         "type": "object"
162                       }
163                     }
164                   }
165                 }
166               }
167             }
168           }
169         },
170         "description": "",
171         "summary": "GET - 123 - action-types - list"
172       },
173       "put": {
174         "tags": [
175           "123 action-types"
176         ],
177         "parameters": [
178           {
179             "name": "name",
180             "in": "path",
181             "required": true,
182             "schema": {
183               "type": "string"
184             }
185           }
186         ],
187         "requestBody": {
188           "description": "list",
189           "content": {
190             "application/xml": {
191               "schema": {
192                 "$ref": "#/components/schemas/action-types_list"
193               }
194             },
195             "application/json": {
196               "schema": {
197                 "properties": {
198                   "action-types:list": {
199                     "type": "array",
200                     "items": {
201                       "$ref": "#/components/schemas/action-types_list",
202                       "type": "object"
203                     }
204                   }
205                 }
206               }
207             }
208           }
209         },
210         "responses": {
211           "204": {
212             "description": "Updated"
213           },
214           "201": {
215             "description": "Created"
216           }
217         },
218         "description": "",
219         "summary": "PUT - action-types - 123 - list"
220       },
221       "delete": {
222         "tags": [
223           "123 action-types"
224         ],
225         "parameters": [
226           {
227             "name": "name",
228             "in": "path",
229             "required": true,
230             "schema": {
231               "type": "string"
232             }
233           }
234         ],
235         "responses": {
236           "204": {
237             "description": "Deleted"
238           }
239         },
240         "description": "",
241         "summary": "DELETE - 123 - action-types - list"
242       },
243       "patch": {
244         "tags": [
245           "123 action-types"
246         ],
247         "parameters": [
248           {
249             "name": "name",
250             "in": "path",
251             "required": true,
252             "schema": {
253               "type": "string"
254             }
255           }
256         ],
257         "requestBody": {
258           "description": "list",
259           "content": {
260             "application/yang-data+json": {
261               "schema": {
262                 "properties": {
263                   "action-types:list": {
264                     "type": "array",
265                     "items": {
266                       "$ref": "#/components/schemas/action-types_list",
267                       "type": "object"
268                     }
269                   }
270                 }
271               }
272             },
273             "application/yang-data+xml": {
274               "schema": {
275                 "$ref": "#/components/schemas/action-types_list"
276               }
277             }
278           }
279         },
280         "responses": {
281           "200": {
282             "description": "OK"
283           },
284           "204": {
285             "description": "Updated"
286           }
287         },
288         "description": "",
289         "summary": "PATCH - action-types - 123 - list"
290       }
291     },
292     "/rests/data/nodes/node=123/yang-ext:mount/operational:root": {
293       "get": {
294         "tags": [
295           "123 operational"
296         ],
297         "parameters": [
298           {
299             "name": "content",
300             "in": "query",
301             "required": false,
302             "schema": {
303               "enum": [
304                 "config",
305                 "nonconfig",
306                 "all"
307               ],
308               "type": "string"
309             }
310           }
311         ],
312         "responses": {
313           "200": {
314             "description": "200",
315             "content": {
316               "application/xml": {
317                 "schema": {
318                   "$ref": "#/components/schemas/operational_root"
319                 }
320               },
321               "application/json": {
322                 "schema": {
323                   "properties": {
324                     "root": {
325                       "$ref": "#/components/schemas/operational_root",
326                       "type": "object"
327                     }
328                   }
329                 }
330               }
331             }
332           }
333         },
334         "description": "",
335         "summary": "GET - 123 - operational - root"
336       },
337       "put": {
338         "tags": [
339           "123 operational"
340         ],
341         "parameters": [],
342         "requestBody": {
343           "description": "root",
344           "content": {
345             "application/xml": {
346               "schema": {
347                 "$ref": "#/components/schemas/operational_root"
348               }
349             },
350             "application/json": {
351               "schema": {
352                 "properties": {
353                   "operational:root": {
354                     "$ref": "#/components/schemas/operational_root",
355                     "type": "object"
356                   }
357                 }
358               }
359             }
360           }
361         },
362         "responses": {
363           "204": {
364             "description": "Updated"
365           },
366           "201": {
367             "description": "Created"
368           }
369         },
370         "description": "",
371         "summary": "PUT - operational - 123 - root"
372       },
373       "post": {
374         "tags": [
375           "123 operational"
376         ],
377         "parameters": [],
378         "requestBody": {
379           "description": "root",
380           "content": {
381             "application/xml": {
382               "schema": {
383                 "$ref": "#/components/schemas/operational_root"
384               }
385             },
386             "application/json": {
387               "schema": {
388                 "$ref": "#/components/schemas/operational_root"
389               }
390             }
391           }
392         },
393         "responses": {
394           "201": {
395             "description": "Created"
396           }
397         },
398         "description": "\n\nNote:\nIn example payload, you can see only the first data node child of the resource to be created, following the\nguidelines of RFC 8040, which allows us to create only one resource in POST request.\n",
399         "summary": "POST - 123 - operational - root"
400       },
401       "delete": {
402         "tags": [
403           "123 operational"
404         ],
405         "parameters": [],
406         "responses": {
407           "204": {
408             "description": "Deleted"
409           }
410         },
411         "description": "",
412         "summary": "DELETE - 123 - operational - root"
413       },
414       "patch": {
415         "tags": [
416           "123 operational"
417         ],
418         "parameters": [],
419         "requestBody": {
420           "description": "root",
421           "content": {
422             "application/yang-data+json": {
423               "schema": {
424                 "properties": {
425                   "operational:root": {
426                     "$ref": "#/components/schemas/operational_root",
427                     "type": "object"
428                   }
429                 }
430               }
431             },
432             "application/yang-data+xml": {
433               "schema": {
434                 "$ref": "#/components/schemas/operational_root"
435               }
436             }
437           }
438         },
439         "responses": {
440           "200": {
441             "description": "OK"
442           },
443           "204": {
444             "description": "Updated"
445           }
446         },
447         "description": "",
448         "summary": "PATCH - operational - 123 - root"
449       }
450     },
451     "/rests/data/nodes/node=123/yang-ext:mount/operational:root/oper-container/config-container": {
452       "get": {
453         "tags": [
454           "123 operational"
455         ],
456         "parameters": [
457           {
458             "name": "content",
459             "in": "query",
460             "required": true,
461             "schema": {
462               "enum": [
463                 "config",
464                 "nonconfig",
465                 "all"
466               ],
467               "type": "string"
468             }
469           }
470         ],
471         "responses": {
472           "200": {
473             "description": "200",
474             "content": {
475               "application/xml": {
476                 "schema": {
477                   "$ref": "#/components/schemas/operational_root_oper-container_config-container"
478                 }
479               },
480               "application/json": {
481                 "schema": {
482                   "properties": {
483                     "config-container": {
484                       "$ref": "#/components/schemas/operational_root_oper-container_config-container",
485                       "type": "object"
486                     }
487                   }
488                 }
489               }
490             }
491           }
492         },
493         "description": "",
494         "summary": "GET - 123 - operational - config-container"
495       }
496     },
497     "/rests/data/nodes/node=123/yang-ext:mount/operational:root/oper-container/oper-container-list={oper-container-list-leaf}": {
498       "get": {
499         "tags": [
500           "123 operational"
501         ],
502         "parameters": [
503           {
504             "name": "oper-container-list-leaf",
505             "in": "path",
506             "required": true,
507             "schema": {
508               "type": "string"
509             }
510           },
511           {
512             "name": "content",
513             "in": "query",
514             "required": true,
515             "schema": {
516               "enum": [
517                 "config",
518                 "nonconfig",
519                 "all"
520               ],
521               "type": "string"
522             }
523           }
524         ],
525         "responses": {
526           "200": {
527             "description": "200",
528             "content": {
529               "application/xml": {
530                 "schema": {
531                   "$ref": "#/components/schemas/operational_root_oper-container_oper-container-list"
532                 }
533               },
534               "application/json": {
535                 "schema": {
536                   "properties": {
537                     "oper-container-list": {
538                       "type": "array",
539                       "items": {
540                         "$ref": "#/components/schemas/operational_root_oper-container_oper-container-list",
541                         "type": "object"
542                       }
543                     }
544                   }
545                 }
546               }
547             }
548           }
549         },
550         "description": "",
551         "summary": "GET - 123 - operational - oper-container-list"
552       }
553     },
554     "/rests/data/nodes/node=123/yang-ext:mount/action-types:multi-container": {
555       "get": {
556         "tags": [
557           "123 action-types"
558         ],
559         "parameters": [
560           {
561             "name": "content",
562             "in": "query",
563             "required": false,
564             "schema": {
565               "enum": [
566                 "config",
567                 "nonconfig",
568                 "all"
569               ],
570               "type": "string"
571             }
572           }
573         ],
574         "responses": {
575           "200": {
576             "description": "200",
577             "content": {
578               "application/xml": {
579                 "schema": {
580                   "$ref": "#/components/schemas/action-types_multi-container"
581                 }
582               },
583               "application/json": {
584                 "schema": {
585                   "properties": {
586                     "multi-container": {
587                       "$ref": "#/components/schemas/action-types_multi-container",
588                       "type": "object"
589                     }
590                   }
591                 }
592               }
593             }
594           }
595         },
596         "description": "",
597         "summary": "GET - 123 - action-types - multi-container"
598       },
599       "put": {
600         "tags": [
601           "123 action-types"
602         ],
603         "parameters": [],
604         "requestBody": {
605           "description": "multi-container",
606           "content": {
607             "application/xml": {
608               "schema": {
609                 "$ref": "#/components/schemas/action-types_multi-container"
610               }
611             },
612             "application/json": {
613               "schema": {
614                 "properties": {
615                   "action-types:multi-container": {
616                     "$ref": "#/components/schemas/action-types_multi-container",
617                     "type": "object"
618                   }
619                 }
620               }
621             }
622           }
623         },
624         "responses": {
625           "204": {
626             "description": "Updated"
627           },
628           "201": {
629             "description": "Created"
630           }
631         },
632         "description": "",
633         "summary": "PUT - action-types - 123 - multi-container"
634       },
635       "post": {
636         "tags": [
637           "123 action-types"
638         ],
639         "parameters": [],
640         "requestBody": {
641           "description": "inner-container",
642           "content": {
643             "application/xml": {
644               "schema": {
645                 "$ref": "#/components/schemas/action-types_multi-container_inner-container"
646               }
647             },
648             "application/json": {
649               "schema": {
650                 "properties": {
651                   "inner-container": {
652                     "$ref": "#/components/schemas/action-types_multi-container_inner-container",
653                     "type": "object"
654                   }
655                 }
656               }
657             }
658           }
659         },
660         "responses": {
661           "201": {
662             "description": "Created"
663           }
664         },
665         "description": "\n\nNote:\nIn example payload, you can see only the first data node child of the resource to be created, following the\nguidelines of RFC 8040, which allows us to create only one resource in POST request.\n",
666         "summary": "POST - 123 - action-types - multi-container"
667       },
668       "delete": {
669         "tags": [
670           "123 action-types"
671         ],
672         "parameters": [],
673         "responses": {
674           "204": {
675             "description": "Deleted"
676           }
677         },
678         "description": "",
679         "summary": "DELETE - 123 - action-types - multi-container"
680       },
681       "patch": {
682         "tags": [
683           "123 action-types"
684         ],
685         "parameters": [],
686         "requestBody": {
687           "description": "multi-container",
688           "content": {
689             "application/yang-data+json": {
690               "schema": {
691                 "properties": {
692                   "action-types:multi-container": {
693                     "$ref": "#/components/schemas/action-types_multi-container",
694                     "type": "object"
695                   }
696                 }
697               }
698             },
699             "application/yang-data+xml": {
700               "schema": {
701                 "$ref": "#/components/schemas/action-types_multi-container"
702               }
703             }
704           }
705         },
706         "responses": {
707           "200": {
708             "description": "OK"
709           },
710           "204": {
711             "description": "Updated"
712           }
713         },
714         "description": "",
715         "summary": "PATCH - action-types - 123 - multi-container"
716       }
717     },
718     "/rests/data/nodes/node=123/yang-ext:mount/action-types:multi-container/inner-container": {
719       "get": {
720         "tags": [
721           "123 action-types"
722         ],
723         "parameters": [
724           {
725             "name": "content",
726             "in": "query",
727             "required": false,
728             "schema": {
729               "enum": [
730                 "config",
731                 "nonconfig",
732                 "all"
733               ],
734               "type": "string"
735             }
736           }
737         ],
738         "responses": {
739           "200": {
740             "description": "200",
741             "content": {
742               "application/xml": {
743                 "schema": {
744                   "$ref": "#/components/schemas/action-types_multi-container_inner-container"
745                 }
746               },
747               "application/json": {
748                 "schema": {
749                   "properties": {
750                     "inner-container": {
751                       "$ref": "#/components/schemas/action-types_multi-container_inner-container",
752                       "type": "object"
753                     }
754                   }
755                 }
756               }
757             }
758           }
759         },
760         "description": "",
761         "summary": "GET - 123 - action-types - inner-container"
762       },
763       "put": {
764         "tags": [
765           "123 action-types"
766         ],
767         "parameters": [],
768         "requestBody": {
769           "description": "inner-container",
770           "content": {
771             "application/xml": {
772               "schema": {
773                 "$ref": "#/components/schemas/action-types_multi-container_inner-container"
774               }
775             },
776             "application/json": {
777               "schema": {
778                 "properties": {
779                   "action-types:inner-container": {
780                     "$ref": "#/components/schemas/action-types_multi-container_inner-container",
781                     "type": "object"
782                   }
783                 }
784               }
785             }
786           }
787         },
788         "responses": {
789           "204": {
790             "description": "Updated"
791           },
792           "201": {
793             "description": "Created"
794           }
795         },
796         "description": "",
797         "summary": "PUT - action-types - 123 - inner-container"
798       },
799       "delete": {
800         "tags": [
801           "123 action-types"
802         ],
803         "parameters": [],
804         "responses": {
805           "204": {
806             "description": "Deleted"
807           }
808         },
809         "description": "",
810         "summary": "DELETE - 123 - action-types - inner-container"
811       },
812       "patch": {
813         "tags": [
814           "123 action-types"
815         ],
816         "parameters": [],
817         "requestBody": {
818           "description": "inner-container",
819           "content": {
820             "application/yang-data+json": {
821               "schema": {
822                 "properties": {
823                   "action-types:inner-container": {
824                     "$ref": "#/components/schemas/action-types_multi-container_inner-container",
825                     "type": "object"
826                   }
827                 }
828               }
829             },
830             "application/yang-data+xml": {
831               "schema": {
832                 "$ref": "#/components/schemas/action-types_multi-container_inner-container"
833               }
834             }
835           }
836         },
837         "responses": {
838           "200": {
839             "description": "OK"
840           },
841           "204": {
842             "description": "Updated"
843           }
844         },
845         "description": "",
846         "summary": "PATCH - action-types - 123 - inner-container"
847       }
848     },
849     "/rests/operations/nodes/node=123/yang-ext:mount": {
850       "get": {
851         "tags": [
852           "123 GET root"
853         ],
854         "responses": {
855           "200": {
856             "description": "OK"
857           }
858         },
859         "description": "Queries the available operations (RPC calls) on the mounted hosted.",
860         "summary": "GET - 123 - datastore - operations"
861       }
862     },
863     "/rests/data/nodes/node=123/yang-ext:mount/operational:root/oper-container": {
864       "get": {
865         "tags": [
866           "123 operational"
867         ],
868         "parameters": [
869           {
870             "name": "content",
871             "in": "query",
872             "required": true,
873             "schema": {
874               "enum": [
875                 "config",
876                 "nonconfig",
877                 "all"
878               ],
879               "type": "string"
880             }
881           }
882         ],
883         "responses": {
884           "200": {
885             "description": "200",
886             "content": {
887               "application/xml": {
888                 "schema": {
889                   "$ref": "#/components/schemas/operational_root_oper-container"
890                 }
891               },
892               "application/json": {
893                 "schema": {
894                   "properties": {
895                     "oper-container": {
896                       "$ref": "#/components/schemas/operational_root_oper-container",
897                       "type": "object"
898                     }
899                   }
900                 }
901               }
902             }
903           }
904         },
905         "description": "",
906         "summary": "GET - 123 - operational - oper-container"
907       }
908     },
909     "/rests/data/nodes/node=123/yang-ext:mount/action-types:container": {
910       "get": {
911         "tags": [
912           "123 action-types"
913         ],
914         "parameters": [
915           {
916             "name": "content",
917             "in": "query",
918             "required": false,
919             "schema": {
920               "enum": [
921                 "config",
922                 "nonconfig",
923                 "all"
924               ],
925               "type": "string"
926             }
927           }
928         ],
929         "responses": {
930           "200": {
931             "description": "200",
932             "content": {
933               "application/xml": {
934                 "schema": {
935                   "$ref": "#/components/schemas/action-types_container"
936                 }
937               },
938               "application/json": {
939                 "schema": {
940                   "properties": {
941                     "container": {
942                       "$ref": "#/components/schemas/action-types_container",
943                       "type": "object"
944                     }
945                   }
946                 }
947               }
948             }
949           }
950         },
951         "description": "",
952         "summary": "GET - 123 - action-types - container"
953       },
954       "put": {
955         "tags": [
956           "123 action-types"
957         ],
958         "parameters": [],
959         "requestBody": {
960           "description": "container",
961           "content": {
962             "application/xml": {
963               "schema": {
964                 "$ref": "#/components/schemas/action-types_container"
965               }
966             },
967             "application/json": {
968               "schema": {
969                 "properties": {
970                   "action-types:container": {
971                     "$ref": "#/components/schemas/action-types_container",
972                     "type": "object"
973                   }
974                 }
975               }
976             }
977           }
978         },
979         "responses": {
980           "204": {
981             "description": "Updated"
982           },
983           "201": {
984             "description": "Created"
985           }
986         },
987         "description": "",
988         "summary": "PUT - action-types - 123 - container"
989       },
990       "delete": {
991         "tags": [
992           "123 action-types"
993         ],
994         "parameters": [],
995         "responses": {
996           "204": {
997             "description": "Deleted"
998           }
999         },
1000         "description": "",
1001         "summary": "DELETE - 123 - action-types - container"
1002       },
1003       "patch": {
1004         "tags": [
1005           "123 action-types"
1006         ],
1007         "parameters": [],
1008         "requestBody": {
1009           "description": "container",
1010           "content": {
1011             "application/yang-data+json": {
1012               "schema": {
1013                 "properties": {
1014                   "action-types:container": {
1015                     "$ref": "#/components/schemas/action-types_container",
1016                     "type": "object"
1017                   }
1018                 }
1019               }
1020             },
1021             "application/yang-data+xml": {
1022               "schema": {
1023                 "$ref": "#/components/schemas/action-types_container"
1024               }
1025             }
1026           }
1027         },
1028         "responses": {
1029           "200": {
1030             "description": "OK"
1031           },
1032           "204": {
1033             "description": "Updated"
1034           }
1035         },
1036         "description": "",
1037         "summary": "PATCH - action-types - 123 - container"
1038       }
1039     },
1040     "/rests/operations/nodes/node=123/yang-ext:mount/action-types:multi-container/inner-container/action": {
1041       "post": {
1042         "tags": [
1043           "123 action-types"
1044         ],
1045         "parameters": [],
1046         "requestBody": {
1047           "description": "action_input",
1048           "content": {
1049             "application/xml": {
1050               "schema": {
1051                 "xml": {
1052                   "name": "input",
1053                   "namespace": "urn:ietf:params:xml:ns:yang:test:action:types"
1054                 },
1055                 "type": "object"
1056               }
1057             },
1058             "application/json": {
1059               "schema": {
1060                 "properties": {
1061                   "input": {
1062                     "type": "object"
1063                   }
1064                 },
1065                 "type": "object"
1066               }
1067             }
1068           }
1069         },
1070         "responses": {
1071           "204": {
1072             "description": "RPC action success"
1073           }
1074         },
1075         "description": "",
1076         "summary": "POST - 123 - action-types - action"
1077       }
1078     },
1079     "/rests/data/nodes/node=123/yang-ext:mount/operational:root/config-container/config-container-oper-list={oper-container-list-leaf}": {
1080       "get": {
1081         "tags": [
1082           "123 operational"
1083         ],
1084         "parameters": [
1085           {
1086             "name": "oper-container-list-leaf",
1087             "in": "path",
1088             "required": true,
1089             "schema": {
1090               "type": "string"
1091             }
1092           },
1093           {
1094             "name": "content",
1095             "in": "query",
1096             "required": true,
1097             "schema": {
1098               "enum": [
1099                 "config",
1100                 "nonconfig",
1101                 "all"
1102               ],
1103               "type": "string"
1104             }
1105           }
1106         ],
1107         "responses": {
1108           "200": {
1109             "description": "200",
1110             "content": {
1111               "application/xml": {
1112                 "schema": {
1113                   "$ref": "#/components/schemas/operational_root_config-container_config-container-oper-list"
1114                 }
1115               },
1116               "application/json": {
1117                 "schema": {
1118                   "properties": {
1119                     "config-container-oper-list": {
1120                       "type": "array",
1121                       "items": {
1122                         "$ref": "#/components/schemas/operational_root_config-container_config-container-oper-list",
1123                         "type": "object"
1124                       }
1125                     }
1126                   }
1127                 }
1128               }
1129             }
1130           }
1131         },
1132         "description": "",
1133         "summary": "GET - 123 - operational - config-container-oper-list"
1134       }
1135     },
1136     "/rests/data/nodes/node=123/yang-ext:mount/operational:root/config-container": {
1137       "get": {
1138         "tags": [
1139           "123 operational"
1140         ],
1141         "parameters": [
1142           {
1143             "name": "content",
1144             "in": "query",
1145             "required": false,
1146             "schema": {
1147               "enum": [
1148                 "config",
1149                 "nonconfig",
1150                 "all"
1151               ],
1152               "type": "string"
1153             }
1154           }
1155         ],
1156         "responses": {
1157           "200": {
1158             "description": "200",
1159             "content": {
1160               "application/xml": {
1161                 "schema": {
1162                   "$ref": "#/components/schemas/operational_root_config-container"
1163                 }
1164               },
1165               "application/json": {
1166                 "schema": {
1167                   "properties": {
1168                     "config-container": {
1169                       "$ref": "#/components/schemas/operational_root_config-container",
1170                       "type": "object"
1171                     }
1172                   }
1173                 }
1174               }
1175             }
1176           }
1177         },
1178         "description": "",
1179         "summary": "GET - 123 - operational - config-container"
1180       },
1181       "put": {
1182         "tags": [
1183           "123 operational"
1184         ],
1185         "parameters": [],
1186         "requestBody": {
1187           "description": "config-container",
1188           "content": {
1189             "application/xml": {
1190               "schema": {
1191                 "$ref": "#/components/schemas/operational_root_config-container"
1192               }
1193             },
1194             "application/json": {
1195               "schema": {
1196                 "properties": {
1197                   "operational:config-container": {
1198                     "$ref": "#/components/schemas/operational_root_config-container",
1199                     "type": "object"
1200                   }
1201                 }
1202               }
1203             }
1204           }
1205         },
1206         "responses": {
1207           "204": {
1208             "description": "Updated"
1209           },
1210           "201": {
1211             "description": "Created"
1212           }
1213         },
1214         "description": "",
1215         "summary": "PUT - operational - 123 - config-container"
1216       },
1217       "post": {
1218         "tags": [
1219           "123 operational"
1220         ],
1221         "parameters": [],
1222         "requestBody": {
1223           "description": "config-container",
1224           "content": {
1225             "application/xml": {
1226               "schema": {
1227                 "$ref": "#/components/schemas/operational_root_config-container"
1228               }
1229             },
1230             "application/json": {
1231               "schema": {
1232                 "$ref": "#/components/schemas/operational_root_config-container"
1233               }
1234             }
1235           }
1236         },
1237         "responses": {
1238           "201": {
1239             "description": "Created"
1240           }
1241         },
1242         "description": "\n\nNote:\nIn example payload, you can see only the first data node child of the resource to be created, following the\nguidelines of RFC 8040, which allows us to create only one resource in POST request.\n",
1243         "summary": "POST - 123 - operational - config-container"
1244       },
1245       "delete": {
1246         "tags": [
1247           "123 operational"
1248         ],
1249         "parameters": [],
1250         "responses": {
1251           "204": {
1252             "description": "Deleted"
1253           }
1254         },
1255         "description": "",
1256         "summary": "DELETE - 123 - operational - config-container"
1257       },
1258       "patch": {
1259         "tags": [
1260           "123 operational"
1261         ],
1262         "parameters": [],
1263         "requestBody": {
1264           "description": "config-container",
1265           "content": {
1266             "application/yang-data+json": {
1267               "schema": {
1268                 "properties": {
1269                   "operational:config-container": {
1270                     "$ref": "#/components/schemas/operational_root_config-container",
1271                     "type": "object"
1272                   }
1273                 }
1274               }
1275             },
1276             "application/yang-data+xml": {
1277               "schema": {
1278                 "$ref": "#/components/schemas/operational_root_config-container"
1279               }
1280             }
1281           }
1282         },
1283         "responses": {
1284           "200": {
1285             "description": "OK"
1286           },
1287           "204": {
1288             "description": "Updated"
1289           }
1290         },
1291         "description": "",
1292         "summary": "PATCH - operational - 123 - config-container"
1293       }
1294     },
1295     "/rests/data/nodes/node=123/yang-ext:mount": {
1296       "get": {
1297         "tags": [
1298           "123 GET root"
1299         ],
1300         "responses": {
1301           "200": {
1302             "description": "OK"
1303           }
1304         },
1305         "description": "Queries the config (startup) datastore on the mounted hosted.",
1306         "summary": "GET - 123 - datastore - data"
1307       }
1308     }
1309   },
1310   "components": {
1311     "schemas": {
1312       "action-types_multi-container": {
1313         "properties": {
1314           "inner-container": {
1315             "$ref": "#/components/schemas/action-types_multi-container_inner-container"
1316           }
1317         },
1318         "xml": {
1319           "name": "multi-container",
1320           "namespace": "urn:ietf:params:xml:ns:yang:test:action:types"
1321         },
1322         "description": "",
1323         "title": "action-types_multi-container",
1324         "type": "object"
1325       },
1326       "operational_root_config-container": {
1327         "properties": {
1328           "leaf-second-case": {
1329             "description": "",
1330             "type": "string",
1331             "example": "Some leaf-second-case"
1332           },
1333           "config-container-config-leaf": {
1334             "description": "",
1335             "type": "string",
1336             "example": "Some config-container-config-leaf"
1337           }
1338         },
1339         "xml": {
1340           "name": "config-container",
1341           "namespace": "urn:opendaylight:oper"
1342         },
1343         "description": "",
1344         "title": "operational_root_config-container",
1345         "type": "object"
1346       },
1347       "operational_root": {
1348         "properties": {
1349           "leaf-config": {
1350             "description": "",
1351             "type": "string",
1352             "example": "Some leaf-config"
1353           },
1354           "config-container": {
1355             "$ref": "#/components/schemas/operational_root_config-container"
1356           }
1357         },
1358         "xml": {
1359           "name": "root",
1360           "namespace": "urn:opendaylight:oper"
1361         },
1362         "description": "",
1363         "title": "operational_root",
1364         "type": "object"
1365       },
1366       "action-types_container-action_input": {
1367         "required": [
1368           "ca-input"
1369         ],
1370         "properties": {
1371           "ca-input": {
1372             "description": "",
1373             "type": "string",
1374             "example": "Some ca-input"
1375           }
1376         },
1377         "xml": {
1378           "name": "input",
1379           "namespace": "urn:ietf:params:xml:ns:yang:test:action:types"
1380         },
1381         "title": "action-types_container-action_input",
1382         "type": "object"
1383       },
1384       "operational_root_oper-container_config-container": {
1385         "required": [
1386           "config-container-config-leaf"
1387         ],
1388         "properties": {
1389           "config-container-config-leaf": {
1390             "description": "",
1391             "type": "string",
1392             "example": "Some config-container-config-leaf"
1393           },
1394           "opconfig-container-oper-leaf": {
1395             "description": "",
1396             "type": "string",
1397             "example": "Some opconfig-container-oper-leaf"
1398           }
1399         },
1400         "xml": {
1401           "name": "config-container",
1402           "namespace": "urn:opendaylight:oper"
1403         },
1404         "description": "",
1405         "title": "operational_root_oper-container_config-container",
1406         "type": "object"
1407       },
1408       "operational_root_oper-container": {
1409         "required": [
1410           "config-container"
1411         ],
1412         "properties": {
1413           "oper-container-list": {
1414             "description": "",
1415             "type": "array",
1416             "items": {
1417               "$ref": "#/components/schemas/operational_root_oper-container_oper-container-list"
1418             }
1419           },
1420           "oper-container-config-leaf-list": {
1421             "description": "",
1422             "type": "array",
1423             "items": {
1424               "type": "string",
1425               "example": "Some oper-container-config-leaf-list"
1426             }
1427           },
1428           "config-container": {
1429             "$ref": "#/components/schemas/operational_root_oper-container_config-container"
1430           },
1431           "oper-leaf-first-case": {
1432             "description": "",
1433             "type": "string",
1434             "example": "Some oper-leaf-first-case"
1435           },
1436           "leaf-first-case": {
1437             "description": "",
1438             "type": "string",
1439             "example": "Some leaf-first-case"
1440           }
1441         },
1442         "xml": {
1443           "name": "oper-container",
1444           "namespace": "urn:opendaylight:oper"
1445         },
1446         "description": "",
1447         "title": "operational_root_oper-container",
1448         "type": "object"
1449       },
1450       "action-types_multi-container_inner-container": {
1451         "properties": {},
1452         "xml": {
1453           "name": "inner-container",
1454           "namespace": "urn:ietf:params:xml:ns:yang:test:action:types"
1455         },
1456         "description": "",
1457         "title": "action-types_multi-container_inner-container",
1458         "type": "object"
1459       },
1460       "operational_root_config-container_config-container-oper-list": {
1461         "properties": {
1462           "oper-container-list-leaf": {
1463             "description": "",
1464             "type": "string",
1465             "example": "Some oper-container-list-leaf"
1466           }
1467         },
1468         "xml": {
1469           "name": "config-container-oper-list",
1470           "namespace": "urn:opendaylight:oper"
1471         },
1472         "description": "",
1473         "title": "operational_root_config-container_config-container-oper-list",
1474         "type": "object"
1475       },
1476       "action-types_container-action_output": {
1477         "required": [
1478           "ca-output"
1479         ],
1480         "properties": {
1481           "ca-output": {
1482             "description": "",
1483             "type": "string",
1484             "example": "Some ca-output"
1485           }
1486         },
1487         "xml": {
1488           "name": "output",
1489           "namespace": "urn:ietf:params:xml:ns:yang:test:action:types"
1490         },
1491         "title": "action-types_container-action_output",
1492         "type": "object"
1493       },
1494       "action-types_list-action_input": {
1495         "required": [
1496           "la-input"
1497         ],
1498         "properties": {
1499           "la-input": {
1500             "description": "",
1501             "type": "string",
1502             "example": "Some la-input"
1503           }
1504         },
1505         "xml": {
1506           "name": "input",
1507           "namespace": "urn:ietf:params:xml:ns:yang:test:action:types"
1508         },
1509         "title": "action-types_list-action_input",
1510         "type": "object"
1511       },
1512       "action-types_container": {
1513         "properties": {},
1514         "xml": {
1515           "name": "container",
1516           "namespace": "urn:ietf:params:xml:ns:yang:test:action:types"
1517         },
1518         "description": "",
1519         "title": "action-types_container",
1520         "type": "object"
1521       },
1522       "action-types_list-action_output": {
1523         "required": [
1524           "la-output"
1525         ],
1526         "properties": {
1527           "la-output": {
1528             "description": "",
1529             "type": "string",
1530             "example": "Some la-output"
1531           }
1532         },
1533         "xml": {
1534           "name": "output",
1535           "namespace": "urn:ietf:params:xml:ns:yang:test:action:types"
1536         },
1537         "title": "action-types_list-action_output",
1538         "type": "object"
1539       },
1540       "operational_root_oper-container_oper-container-list": {
1541         "properties": {
1542           "oper-container-list-leaf": {
1543             "description": "",
1544             "type": "string",
1545             "example": "Some oper-container-list-leaf"
1546           }
1547         },
1548         "xml": {
1549           "name": "oper-container-list",
1550           "namespace": "urn:opendaylight:oper"
1551         },
1552         "description": "",
1553         "title": "operational_root_oper-container_oper-container-list",
1554         "type": "object"
1555       },
1556       "action-types_list": {
1557         "properties": {
1558           "name": {
1559             "description": "",
1560             "type": "string",
1561             "example": "Some name"
1562           }
1563         },
1564         "xml": {
1565           "name": "list",
1566           "namespace": "urn:ietf:params:xml:ns:yang:test:action:types"
1567         },
1568         "description": "",
1569         "title": "action-types_list",
1570         "type": "object"
1571       }
1572     },
1573     "securitySchemes": {
1574       "basicAuth": {
1575         "scheme": "basic",
1576         "type": "http"
1577       }
1578     }
1579   },
1580   "security": [
1581     {
1582       "basicAuth": []
1583     }
1584   ]
1585 }