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