Adapt tests for OpenApi
[netconf.git] / restconf / restconf-openapi / src / test / resources / yang-document / controller-toaster2.json
1 {
2   "openapi": "3.0.3",
3   "info": {
4     "version": "1.0.0",
5     "title": "toaster2",
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/toaster2:cancel-toast": {
15       "post": {
16         "tags": [
17           "Controller toaster2"
18         ],
19         "parameters": [],
20         "requestBody": {
21           "description": "cancel-toast_input",
22           "content": {
23             "application/json": {
24               "schema": {
25                 "properties": {
26                   "input": {
27                     "type": "object"
28                   }
29                 },
30                 "type": "object"
31               }
32             },
33             "application/xml": {
34               "schema": {
35                 "xml": {
36                   "name": "input",
37                   "namespace": "http://netconfcentral.org/ns/toaster2"
38                 },
39                 "type": "object"
40               }
41             }
42           }
43         },
44         "responses": {
45           "204": {
46             "description": "RPC cancel-toast success"
47           }
48         },
49         "description": "Stop making toast, if any is being made.\n  A 'resource-denied' error will be returned\n  if the toaster service is disabled.",
50         "summary": "POST - Controller - toaster2 - cancel-toast"
51       }
52     },
53     "/rests/data/toaster2:lst={lf1}/cont1/cont11": {
54       "get": {
55         "tags": [
56           "Controller toaster2"
57         ],
58         "parameters": [
59           {
60             "name": "lf1",
61             "in": "path",
62             "required": true,
63             "schema": {
64               "type": "string"
65             }
66           },
67           {
68             "name": "content",
69             "in": "query",
70             "required": false,
71             "schema": {
72               "enum": [
73                 "config",
74                 "nonconfig",
75                 "all"
76               ],
77               "type": "string"
78             }
79           }
80         ],
81         "responses": {
82           "200": {
83             "description": "200",
84             "content": {
85               "application/json": {
86                 "schema": {
87                   "properties": {
88                     "cont11": {
89                       "$ref": "#/components/schemas/toaster2_lst_cont1_cont11",
90                       "type": "object"
91                     }
92                   }
93                 }
94               },
95               "application/xml": {
96                 "schema": {
97                   "$ref": "#/components/schemas/toaster2_lst_cont1_cont11"
98                 }
99               }
100             }
101           }
102         },
103         "description": "",
104         "summary": "GET - Controller - toaster2 - cont11"
105       },
106       "put": {
107         "tags": [
108           "Controller toaster2"
109         ],
110         "parameters": [
111           {
112             "name": "lf1",
113             "in": "path",
114             "required": true,
115             "schema": {
116               "type": "string"
117             }
118           }
119         ],
120         "requestBody": {
121           "description": "cont11",
122           "content": {
123             "application/json": {
124               "schema": {
125                 "properties": {
126                   "toaster2:cont11": {
127                     "$ref": "#/components/schemas/toaster2_lst_cont1_cont11",
128                     "type": "object"
129                   }
130                 }
131               }
132             },
133             "application/xml": {
134               "schema": {
135                 "$ref": "#/components/schemas/toaster2_lst_cont1_cont11"
136               }
137             }
138           }
139         },
140         "responses": {
141           "201": {
142             "description": "Created"
143           },
144           "204": {
145             "description": "Updated"
146           }
147         },
148         "description": "",
149         "summary": "PUT - toaster2 - Controller - cont11"
150       },
151       "delete": {
152         "tags": [
153           "Controller toaster2"
154         ],
155         "parameters": [
156           {
157             "name": "lf1",
158             "in": "path",
159             "required": true,
160             "schema": {
161               "type": "string"
162             }
163           }
164         ],
165         "responses": {
166           "204": {
167             "description": "Deleted"
168           }
169         },
170         "description": "",
171         "summary": "DELETE - Controller - toaster2 - cont11"
172       },
173       "patch": {
174         "tags": [
175           "Controller toaster2"
176         ],
177         "parameters": [
178           {
179             "name": "lf1",
180             "in": "path",
181             "required": true,
182             "schema": {
183               "type": "string"
184             }
185           }
186         ],
187         "requestBody": {
188           "description": "cont11",
189           "content": {
190             "application/yang-data+xml": {
191               "schema": {
192                 "$ref": "#/components/schemas/toaster2_lst_cont1_cont11"
193               }
194             },
195             "application/yang-data+json": {
196               "schema": {
197                 "properties": {
198                   "toaster2:cont11": {
199                     "$ref": "#/components/schemas/toaster2_lst_cont1_cont11",
200                     "type": "object"
201                   }
202                 }
203               }
204             }
205           }
206         },
207         "responses": {
208           "204": {
209             "description": "Updated"
210           },
211           "200": {
212             "description": "OK"
213           }
214         },
215         "description": "",
216         "summary": "PATCH - toaster2 - Controller - cont11"
217       }
218     },
219     "/rests/data": {
220       "post": {
221         "tags": [
222           "Controller toaster2"
223         ],
224         "parameters": [],
225         "requestBody": {
226           "description": "toaster",
227           "content": {
228             "application/json": {
229               "schema": {
230                 "properties": {
231                   "toaster": {
232                     "$ref": "#/components/schemas/toaster2_toaster",
233                     "type": "object"
234                   }
235                 }
236               }
237             },
238             "application/xml": {
239               "schema": {
240                 "$ref": "#/components/schemas/toaster2_toaster"
241               }
242             }
243           }
244         },
245         "responses": {
246           "201": {
247             "description": "Created"
248           }
249         },
250         "description": "YANG version of the TOASTER-MIB.\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",
251         "summary": "POST - Controller - toaster2 - toaster2"
252       }
253     },
254     "/rests/data/toaster2:lst={lf1}": {
255       "get": {
256         "tags": [
257           "Controller toaster2"
258         ],
259         "parameters": [
260           {
261             "name": "lf1",
262             "in": "path",
263             "required": true,
264             "schema": {
265               "type": "string"
266             }
267           },
268           {
269             "name": "content",
270             "in": "query",
271             "required": false,
272             "schema": {
273               "enum": [
274                 "config",
275                 "nonconfig",
276                 "all"
277               ],
278               "type": "string"
279             }
280           }
281         ],
282         "responses": {
283           "200": {
284             "description": "200",
285             "content": {
286               "application/json": {
287                 "schema": {
288                   "properties": {
289                     "lst": {
290                       "type": "array",
291                       "items": {
292                         "$ref": "#/components/schemas/toaster2_lst",
293                         "type": "object"
294                       }
295                     }
296                   }
297                 }
298               },
299               "application/xml": {
300                 "schema": {
301                   "$ref": "#/components/schemas/toaster2_lst"
302                 }
303               }
304             }
305           }
306         },
307         "description": "",
308         "summary": "GET - Controller - toaster2 - lst"
309       },
310       "put": {
311         "tags": [
312           "Controller toaster2"
313         ],
314         "parameters": [
315           {
316             "name": "lf1",
317             "in": "path",
318             "required": true,
319             "schema": {
320               "type": "string"
321             }
322           }
323         ],
324         "requestBody": {
325           "description": "lst",
326           "content": {
327             "application/json": {
328               "schema": {
329                 "properties": {
330                   "toaster2:lst": {
331                     "type": "array",
332                     "items": {
333                       "$ref": "#/components/schemas/toaster2_lst",
334                       "type": "object"
335                     }
336                   }
337                 }
338               }
339             },
340             "application/xml": {
341               "schema": {
342                 "$ref": "#/components/schemas/toaster2_lst"
343               }
344             }
345           }
346         },
347         "responses": {
348           "201": {
349             "description": "Created"
350           },
351           "204": {
352             "description": "Updated"
353           }
354         },
355         "description": "",
356         "summary": "PUT - toaster2 - Controller - lst"
357       },
358       "delete": {
359         "tags": [
360           "Controller toaster2"
361         ],
362         "parameters": [
363           {
364             "name": "lf1",
365             "in": "path",
366             "required": true,
367             "schema": {
368               "type": "string"
369             }
370           }
371         ],
372         "responses": {
373           "204": {
374             "description": "Deleted"
375           }
376         },
377         "description": "",
378         "summary": "DELETE - Controller - toaster2 - lst"
379       },
380       "patch": {
381         "tags": [
382           "Controller toaster2"
383         ],
384         "parameters": [
385           {
386             "name": "lf1",
387             "in": "path",
388             "required": true,
389             "schema": {
390               "type": "string"
391             }
392           }
393         ],
394         "requestBody": {
395           "description": "lst",
396           "content": {
397             "application/yang-data+xml": {
398               "schema": {
399                 "$ref": "#/components/schemas/toaster2_lst"
400               }
401             },
402             "application/yang-data+json": {
403               "schema": {
404                 "properties": {
405                   "toaster2:lst": {
406                     "type": "array",
407                     "items": {
408                       "$ref": "#/components/schemas/toaster2_lst",
409                       "type": "object"
410                     }
411                   }
412                 }
413               }
414             }
415           }
416         },
417         "responses": {
418           "204": {
419             "description": "Updated"
420           },
421           "200": {
422             "description": "OK"
423           }
424         },
425         "description": "",
426         "summary": "PATCH - toaster2 - Controller - lst"
427       }
428     },
429     "/rests/data/toaster2:toaster": {
430       "get": {
431         "tags": [
432           "Controller toaster2"
433         ],
434         "parameters": [
435           {
436             "name": "content",
437             "in": "query",
438             "required": false,
439             "schema": {
440               "enum": [
441                 "config",
442                 "nonconfig",
443                 "all"
444               ],
445               "type": "string"
446             }
447           }
448         ],
449         "responses": {
450           "200": {
451             "description": "200",
452             "content": {
453               "application/json": {
454                 "schema": {
455                   "properties": {
456                     "toaster": {
457                       "$ref": "#/components/schemas/toaster2_toaster",
458                       "type": "object"
459                     }
460                   }
461                 }
462               },
463               "application/xml": {
464                 "schema": {
465                   "$ref": "#/components/schemas/toaster2_toaster"
466                 }
467               }
468             }
469           }
470         },
471         "description": "Top-level container for all toaster database objects.",
472         "summary": "GET - Controller - toaster2 - toaster"
473       },
474       "put": {
475         "tags": [
476           "Controller toaster2"
477         ],
478         "parameters": [],
479         "requestBody": {
480           "description": "toaster",
481           "content": {
482             "application/json": {
483               "schema": {
484                 "properties": {
485                   "toaster2:toaster": {
486                     "$ref": "#/components/schemas/toaster2_toaster",
487                     "type": "object"
488                   }
489                 }
490               }
491             },
492             "application/xml": {
493               "schema": {
494                 "$ref": "#/components/schemas/toaster2_toaster"
495               }
496             }
497           }
498         },
499         "responses": {
500           "201": {
501             "description": "Created"
502           },
503           "204": {
504             "description": "Updated"
505           }
506         },
507         "description": "Top-level container for all toaster database objects.",
508         "summary": "PUT - toaster2 - Controller - toaster"
509       },
510       "post": {
511         "tags": [
512           "Controller toaster2"
513         ],
514         "parameters": [],
515         "requestBody": {
516           "description": "toasterSlot",
517           "content": {
518             "application/json": {
519               "schema": {
520                 "properties": {
521                   "toasterSlot": {
522                     "type": "array",
523                     "items": {
524                       "$ref": "#/components/schemas/toaster2_toaster_toasterSlot",
525                       "type": "object"
526                     }
527                   }
528                 }
529               }
530             },
531             "application/xml": {
532               "schema": {
533                 "$ref": "#/components/schemas/toaster2_toaster_toasterSlot"
534               }
535             }
536           }
537         },
538         "responses": {
539           "201": {
540             "description": "Created"
541           }
542         },
543         "description": "Top-level container for all toaster database objects.\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",
544         "summary": "POST - Controller - toaster2 - toaster"
545       },
546       "delete": {
547         "tags": [
548           "Controller toaster2"
549         ],
550         "parameters": [],
551         "responses": {
552           "204": {
553             "description": "Deleted"
554           }
555         },
556         "description": "Top-level container for all toaster database objects.",
557         "summary": "DELETE - Controller - toaster2 - toaster"
558       },
559       "patch": {
560         "tags": [
561           "Controller toaster2"
562         ],
563         "parameters": [],
564         "requestBody": {
565           "description": "toaster",
566           "content": {
567             "application/yang-data+xml": {
568               "schema": {
569                 "$ref": "#/components/schemas/toaster2_toaster"
570               }
571             },
572             "application/yang-data+json": {
573               "schema": {
574                 "properties": {
575                   "toaster2:toaster": {
576                     "$ref": "#/components/schemas/toaster2_toaster",
577                     "type": "object"
578                   }
579                 }
580               }
581             }
582           }
583         },
584         "responses": {
585           "204": {
586             "description": "Updated"
587           },
588           "200": {
589             "description": "OK"
590           }
591         },
592         "description": "Top-level container for all toaster database objects.",
593         "summary": "PATCH - toaster2 - Controller - toaster"
594       }
595     },
596     "/rests/data/toaster2:lst={lf1}/cont1": {
597       "get": {
598         "tags": [
599           "Controller toaster2"
600         ],
601         "parameters": [
602           {
603             "name": "lf1",
604             "in": "path",
605             "required": true,
606             "schema": {
607               "type": "string"
608             }
609           },
610           {
611             "name": "content",
612             "in": "query",
613             "required": false,
614             "schema": {
615               "enum": [
616                 "config",
617                 "nonconfig",
618                 "all"
619               ],
620               "type": "string"
621             }
622           }
623         ],
624         "responses": {
625           "200": {
626             "description": "200",
627             "content": {
628               "application/json": {
629                 "schema": {
630                   "properties": {
631                     "cont1": {
632                       "$ref": "#/components/schemas/toaster2_lst_cont1",
633                       "type": "object"
634                     }
635                   }
636                 }
637               },
638               "application/xml": {
639                 "schema": {
640                   "$ref": "#/components/schemas/toaster2_lst_cont1"
641                 }
642               }
643             }
644           }
645         },
646         "description": "",
647         "summary": "GET - Controller - toaster2 - cont1"
648       },
649       "put": {
650         "tags": [
651           "Controller toaster2"
652         ],
653         "parameters": [
654           {
655             "name": "lf1",
656             "in": "path",
657             "required": true,
658             "schema": {
659               "type": "string"
660             }
661           }
662         ],
663         "requestBody": {
664           "description": "cont1",
665           "content": {
666             "application/json": {
667               "schema": {
668                 "properties": {
669                   "toaster2:cont1": {
670                     "$ref": "#/components/schemas/toaster2_lst_cont1",
671                     "type": "object"
672                   }
673                 }
674               }
675             },
676             "application/xml": {
677               "schema": {
678                 "$ref": "#/components/schemas/toaster2_lst_cont1"
679               }
680             }
681           }
682         },
683         "responses": {
684           "201": {
685             "description": "Created"
686           },
687           "204": {
688             "description": "Updated"
689           }
690         },
691         "description": "",
692         "summary": "PUT - toaster2 - Controller - cont1"
693       },
694       "post": {
695         "tags": [
696           "Controller toaster2"
697         ],
698         "parameters": [
699           {
700             "name": "lf1",
701             "in": "path",
702             "required": true,
703             "schema": {
704               "type": "string"
705             }
706           }
707         ],
708         "requestBody": {
709           "description": "cont11",
710           "content": {
711             "application/json": {
712               "schema": {
713                 "properties": {
714                   "cont11": {
715                     "$ref": "#/components/schemas/toaster2_lst_cont1_cont11",
716                     "type": "object"
717                   }
718                 }
719               }
720             },
721             "application/xml": {
722               "schema": {
723                 "$ref": "#/components/schemas/toaster2_lst_cont1_cont11"
724               }
725             }
726           }
727         },
728         "responses": {
729           "201": {
730             "description": "Created"
731           }
732         },
733         "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",
734         "summary": "POST - Controller - toaster2 - cont1"
735       },
736       "delete": {
737         "tags": [
738           "Controller toaster2"
739         ],
740         "parameters": [
741           {
742             "name": "lf1",
743             "in": "path",
744             "required": true,
745             "schema": {
746               "type": "string"
747             }
748           }
749         ],
750         "responses": {
751           "204": {
752             "description": "Deleted"
753           }
754         },
755         "description": "",
756         "summary": "DELETE - Controller - toaster2 - cont1"
757       },
758       "patch": {
759         "tags": [
760           "Controller toaster2"
761         ],
762         "parameters": [
763           {
764             "name": "lf1",
765             "in": "path",
766             "required": true,
767             "schema": {
768               "type": "string"
769             }
770           }
771         ],
772         "requestBody": {
773           "description": "cont1",
774           "content": {
775             "application/yang-data+xml": {
776               "schema": {
777                 "$ref": "#/components/schemas/toaster2_lst_cont1"
778               }
779             },
780             "application/yang-data+json": {
781               "schema": {
782                 "properties": {
783                   "toaster2:cont1": {
784                     "$ref": "#/components/schemas/toaster2_lst_cont1",
785                     "type": "object"
786                   }
787                 }
788               }
789             }
790           }
791         },
792         "responses": {
793           "204": {
794             "description": "Updated"
795           },
796           "200": {
797             "description": "OK"
798           }
799         },
800         "description": "",
801         "summary": "PATCH - toaster2 - Controller - cont1"
802       }
803     },
804     "/rests/data/toaster2:toaster/toasterSlot={slotId}/toaster-augmented:slotInfo": {
805       "get": {
806         "tags": [
807           "Controller toaster2"
808         ],
809         "parameters": [
810           {
811             "name": "slotId",
812             "in": "path",
813             "required": true,
814             "schema": {
815               "type": "string"
816             }
817           },
818           {
819             "name": "content",
820             "in": "query",
821             "required": false,
822             "schema": {
823               "enum": [
824                 "config",
825                 "nonconfig",
826                 "all"
827               ],
828               "type": "string"
829             }
830           }
831         ],
832         "responses": {
833           "200": {
834             "description": "200",
835             "content": {
836               "application/json": {
837                 "schema": {
838                   "properties": {
839                     "slotInfo": {
840                       "$ref": "#/components/schemas/toaster2_toaster_toasterSlot_slotInfo",
841                       "type": "object"
842                     }
843                   }
844                 }
845               },
846               "application/xml": {
847                 "schema": {
848                   "$ref": "#/components/schemas/toaster2_toaster_toasterSlot_slotInfo"
849                 }
850               }
851             }
852           }
853         },
854         "description": "",
855         "summary": "GET - Controller - toaster2 - slotInfo"
856       },
857       "put": {
858         "tags": [
859           "Controller toaster2"
860         ],
861         "parameters": [
862           {
863             "name": "slotId",
864             "in": "path",
865             "required": true,
866             "schema": {
867               "type": "string"
868             }
869           }
870         ],
871         "requestBody": {
872           "description": "slotInfo",
873           "content": {
874             "application/json": {
875               "schema": {
876                 "properties": {
877                   "toaster-augmented:slotInfo": {
878                     "$ref": "#/components/schemas/toaster2_toaster_toasterSlot_slotInfo",
879                     "type": "object"
880                   }
881                 }
882               }
883             },
884             "application/xml": {
885               "schema": {
886                 "$ref": "#/components/schemas/toaster2_toaster_toasterSlot_slotInfo"
887               }
888             }
889           }
890         },
891         "responses": {
892           "201": {
893             "description": "Created"
894           },
895           "204": {
896             "description": "Updated"
897           }
898         },
899         "description": "",
900         "summary": "PUT - toaster2 - Controller - slotInfo"
901       },
902       "delete": {
903         "tags": [
904           "Controller toaster2"
905         ],
906         "parameters": [
907           {
908             "name": "slotId",
909             "in": "path",
910             "required": true,
911             "schema": {
912               "type": "string"
913             }
914           }
915         ],
916         "responses": {
917           "204": {
918             "description": "Deleted"
919           }
920         },
921         "description": "",
922         "summary": "DELETE - Controller - toaster2 - slotInfo"
923       },
924       "patch": {
925         "tags": [
926           "Controller toaster2"
927         ],
928         "parameters": [
929           {
930             "name": "slotId",
931             "in": "path",
932             "required": true,
933             "schema": {
934               "type": "string"
935             }
936           }
937         ],
938         "requestBody": {
939           "description": "slotInfo",
940           "content": {
941             "application/yang-data+xml": {
942               "schema": {
943                 "$ref": "#/components/schemas/toaster2_toaster_toasterSlot_slotInfo"
944               }
945             },
946             "application/yang-data+json": {
947               "schema": {
948                 "properties": {
949                   "toaster-augmented:slotInfo": {
950                     "$ref": "#/components/schemas/toaster2_toaster_toasterSlot_slotInfo",
951                     "type": "object"
952                   }
953                 }
954               }
955             }
956           }
957         },
958         "responses": {
959           "204": {
960             "description": "Updated"
961           },
962           "200": {
963             "description": "OK"
964           }
965         },
966         "description": "",
967         "summary": "PATCH - toaster2 - Controller - slotInfo"
968       }
969     },
970     "/rests/operations/toaster2:make-toast": {
971       "post": {
972         "tags": [
973           "Controller toaster2"
974         ],
975         "parameters": [],
976         "requestBody": {
977           "description": "make-toast_input",
978           "content": {
979             "application/json": {
980               "schema": {
981                 "properties": {
982                   "input": {
983                     "$ref": "#/components/schemas/toaster2_make-toast_input",
984                     "type": "object"
985                   }
986                 }
987               }
988             },
989             "application/xml": {
990               "schema": {
991                 "$ref": "#/components/schemas/toaster2_make-toast_input"
992               }
993             }
994           }
995         },
996         "responses": {
997           "204": {
998             "description": "RPC make-toast success"
999           }
1000         },
1001         "description": "Make some toast.\n  The toastDone notification will be sent when\n  the toast is finished.\n  An 'in-use' error will be returned if toast\n  is already being made.\n  A 'resource-denied' error will be returned\n  if the toaster service is disabled.",
1002         "summary": "POST - Controller - toaster2 - make-toast"
1003       }
1004     },
1005     "/rests/data/toaster2:lst={lf1}/cont1/lst11={lf111}": {
1006       "get": {
1007         "tags": [
1008           "Controller toaster2"
1009         ],
1010         "parameters": [
1011           {
1012             "name": "lf1",
1013             "in": "path",
1014             "required": true,
1015             "schema": {
1016               "type": "string"
1017             }
1018           },
1019           {
1020             "name": "lf111",
1021             "in": "path",
1022             "required": true,
1023             "schema": {
1024               "type": "string"
1025             }
1026           },
1027           {
1028             "name": "content",
1029             "in": "query",
1030             "required": false,
1031             "schema": {
1032               "enum": [
1033                 "config",
1034                 "nonconfig",
1035                 "all"
1036               ],
1037               "type": "string"
1038             }
1039           }
1040         ],
1041         "responses": {
1042           "200": {
1043             "description": "200",
1044             "content": {
1045               "application/json": {
1046                 "schema": {
1047                   "properties": {
1048                     "lst11": {
1049                       "type": "array",
1050                       "items": {
1051                         "$ref": "#/components/schemas/toaster2_lst_cont1_lst11",
1052                         "type": "object"
1053                       }
1054                     }
1055                   }
1056                 }
1057               },
1058               "application/xml": {
1059                 "schema": {
1060                   "$ref": "#/components/schemas/toaster2_lst_cont1_lst11"
1061                 }
1062               }
1063             }
1064           }
1065         },
1066         "description": "",
1067         "summary": "GET - Controller - toaster2 - lst11"
1068       },
1069       "put": {
1070         "tags": [
1071           "Controller toaster2"
1072         ],
1073         "parameters": [
1074           {
1075             "name": "lf1",
1076             "in": "path",
1077             "required": true,
1078             "schema": {
1079               "type": "string"
1080             }
1081           },
1082           {
1083             "name": "lf111",
1084             "in": "path",
1085             "required": true,
1086             "schema": {
1087               "type": "string"
1088             }
1089           }
1090         ],
1091         "requestBody": {
1092           "description": "lst11",
1093           "content": {
1094             "application/json": {
1095               "schema": {
1096                 "properties": {
1097                   "toaster2:lst11": {
1098                     "type": "array",
1099                     "items": {
1100                       "$ref": "#/components/schemas/toaster2_lst_cont1_lst11",
1101                       "type": "object"
1102                     }
1103                   }
1104                 }
1105               }
1106             },
1107             "application/xml": {
1108               "schema": {
1109                 "$ref": "#/components/schemas/toaster2_lst_cont1_lst11"
1110               }
1111             }
1112           }
1113         },
1114         "responses": {
1115           "201": {
1116             "description": "Created"
1117           },
1118           "204": {
1119             "description": "Updated"
1120           }
1121         },
1122         "description": "",
1123         "summary": "PUT - toaster2 - Controller - lst11"
1124       },
1125       "delete": {
1126         "tags": [
1127           "Controller toaster2"
1128         ],
1129         "parameters": [
1130           {
1131             "name": "lf1",
1132             "in": "path",
1133             "required": true,
1134             "schema": {
1135               "type": "string"
1136             }
1137           },
1138           {
1139             "name": "lf111",
1140             "in": "path",
1141             "required": true,
1142             "schema": {
1143               "type": "string"
1144             }
1145           }
1146         ],
1147         "responses": {
1148           "204": {
1149             "description": "Deleted"
1150           }
1151         },
1152         "description": "",
1153         "summary": "DELETE - Controller - toaster2 - lst11"
1154       },
1155       "patch": {
1156         "tags": [
1157           "Controller toaster2"
1158         ],
1159         "parameters": [
1160           {
1161             "name": "lf1",
1162             "in": "path",
1163             "required": true,
1164             "schema": {
1165               "type": "string"
1166             }
1167           },
1168           {
1169             "name": "lf111",
1170             "in": "path",
1171             "required": true,
1172             "schema": {
1173               "type": "string"
1174             }
1175           }
1176         ],
1177         "requestBody": {
1178           "description": "lst11",
1179           "content": {
1180             "application/yang-data+xml": {
1181               "schema": {
1182                 "$ref": "#/components/schemas/toaster2_lst_cont1_lst11"
1183               }
1184             },
1185             "application/yang-data+json": {
1186               "schema": {
1187                 "properties": {
1188                   "toaster2:lst11": {
1189                     "type": "array",
1190                     "items": {
1191                       "$ref": "#/components/schemas/toaster2_lst_cont1_lst11",
1192                       "type": "object"
1193                     }
1194                   }
1195                 }
1196               }
1197             }
1198           }
1199         },
1200         "responses": {
1201           "204": {
1202             "description": "Updated"
1203           },
1204           "200": {
1205             "description": "OK"
1206           }
1207         },
1208         "description": "",
1209         "summary": "PATCH - toaster2 - Controller - lst11"
1210       }
1211     },
1212     "/rests/data/toaster2:lst={lf1}/lst1={key1},{key2}": {
1213       "get": {
1214         "tags": [
1215           "Controller toaster2"
1216         ],
1217         "parameters": [
1218           {
1219             "name": "lf1",
1220             "in": "path",
1221             "required": true,
1222             "schema": {
1223               "type": "string"
1224             }
1225           },
1226           {
1227             "name": "key1",
1228             "in": "path",
1229             "required": true,
1230             "schema": {
1231               "type": "integer"
1232             }
1233           },
1234           {
1235             "name": "key2",
1236             "in": "path",
1237             "required": true,
1238             "schema": {
1239               "type": "integer"
1240             }
1241           },
1242           {
1243             "name": "content",
1244             "in": "query",
1245             "required": false,
1246             "schema": {
1247               "enum": [
1248                 "config",
1249                 "nonconfig",
1250                 "all"
1251               ],
1252               "type": "string"
1253             }
1254           }
1255         ],
1256         "responses": {
1257           "200": {
1258             "description": "200",
1259             "content": {
1260               "application/json": {
1261                 "schema": {
1262                   "properties": {
1263                     "lst1": {
1264                       "type": "array",
1265                       "items": {
1266                         "$ref": "#/components/schemas/toaster2_lst_lst1",
1267                         "type": "object"
1268                       }
1269                     }
1270                   }
1271                 }
1272               },
1273               "application/xml": {
1274                 "schema": {
1275                   "$ref": "#/components/schemas/toaster2_lst_lst1"
1276                 }
1277               }
1278             }
1279           }
1280         },
1281         "description": "",
1282         "summary": "GET - Controller - toaster2 - lst1"
1283       },
1284       "put": {
1285         "tags": [
1286           "Controller toaster2"
1287         ],
1288         "parameters": [
1289           {
1290             "name": "lf1",
1291             "in": "path",
1292             "required": true,
1293             "schema": {
1294               "type": "string"
1295             }
1296           },
1297           {
1298             "name": "key1",
1299             "in": "path",
1300             "required": true,
1301             "schema": {
1302               "type": "integer"
1303             }
1304           },
1305           {
1306             "name": "key2",
1307             "in": "path",
1308             "required": true,
1309             "schema": {
1310               "type": "integer"
1311             }
1312           }
1313         ],
1314         "requestBody": {
1315           "description": "lst1",
1316           "content": {
1317             "application/json": {
1318               "schema": {
1319                 "properties": {
1320                   "toaster2:lst1": {
1321                     "type": "array",
1322                     "items": {
1323                       "$ref": "#/components/schemas/toaster2_lst_lst1",
1324                       "type": "object"
1325                     }
1326                   }
1327                 }
1328               }
1329             },
1330             "application/xml": {
1331               "schema": {
1332                 "$ref": "#/components/schemas/toaster2_lst_lst1"
1333               }
1334             }
1335           }
1336         },
1337         "responses": {
1338           "201": {
1339             "description": "Created"
1340           },
1341           "204": {
1342             "description": "Updated"
1343           }
1344         },
1345         "description": "",
1346         "summary": "PUT - toaster2 - Controller - lst1"
1347       },
1348       "delete": {
1349         "tags": [
1350           "Controller toaster2"
1351         ],
1352         "parameters": [
1353           {
1354             "name": "lf1",
1355             "in": "path",
1356             "required": true,
1357             "schema": {
1358               "type": "string"
1359             }
1360           },
1361           {
1362             "name": "key1",
1363             "in": "path",
1364             "required": true,
1365             "schema": {
1366               "type": "integer"
1367             }
1368           },
1369           {
1370             "name": "key2",
1371             "in": "path",
1372             "required": true,
1373             "schema": {
1374               "type": "integer"
1375             }
1376           }
1377         ],
1378         "responses": {
1379           "204": {
1380             "description": "Deleted"
1381           }
1382         },
1383         "description": "",
1384         "summary": "DELETE - Controller - toaster2 - lst1"
1385       },
1386       "patch": {
1387         "tags": [
1388           "Controller toaster2"
1389         ],
1390         "parameters": [
1391           {
1392             "name": "lf1",
1393             "in": "path",
1394             "required": true,
1395             "schema": {
1396               "type": "string"
1397             }
1398           },
1399           {
1400             "name": "key1",
1401             "in": "path",
1402             "required": true,
1403             "schema": {
1404               "type": "integer"
1405             }
1406           },
1407           {
1408             "name": "key2",
1409             "in": "path",
1410             "required": true,
1411             "schema": {
1412               "type": "integer"
1413             }
1414           }
1415         ],
1416         "requestBody": {
1417           "description": "lst1",
1418           "content": {
1419             "application/yang-data+xml": {
1420               "schema": {
1421                 "$ref": "#/components/schemas/toaster2_lst_lst1"
1422               }
1423             },
1424             "application/yang-data+json": {
1425               "schema": {
1426                 "properties": {
1427                   "toaster2:lst1": {
1428                     "type": "array",
1429                     "items": {
1430                       "$ref": "#/components/schemas/toaster2_lst_lst1",
1431                       "type": "object"
1432                     }
1433                   }
1434                 }
1435               }
1436             }
1437           }
1438         },
1439         "responses": {
1440           "204": {
1441             "description": "Updated"
1442           },
1443           "200": {
1444             "description": "OK"
1445           }
1446         },
1447         "description": "",
1448         "summary": "PATCH - toaster2 - Controller - lst1"
1449       }
1450     },
1451     "/rests/data/toaster2:toaster/toasterSlot={slotId}": {
1452       "get": {
1453         "tags": [
1454           "Controller toaster2"
1455         ],
1456         "parameters": [
1457           {
1458             "name": "slotId",
1459             "in": "path",
1460             "required": true,
1461             "schema": {
1462               "type": "string"
1463             }
1464           },
1465           {
1466             "name": "content",
1467             "in": "query",
1468             "required": false,
1469             "schema": {
1470               "enum": [
1471                 "config",
1472                 "nonconfig",
1473                 "all"
1474               ],
1475               "type": "string"
1476             }
1477           }
1478         ],
1479         "responses": {
1480           "200": {
1481             "description": "200",
1482             "content": {
1483               "application/json": {
1484                 "schema": {
1485                   "properties": {
1486                     "toasterSlot": {
1487                       "type": "array",
1488                       "items": {
1489                         "$ref": "#/components/schemas/toaster2_toaster_toasterSlot",
1490                         "type": "object"
1491                       }
1492                     }
1493                   }
1494                 }
1495               },
1496               "application/xml": {
1497                 "schema": {
1498                   "$ref": "#/components/schemas/toaster2_toaster_toasterSlot"
1499                 }
1500               }
1501             }
1502           }
1503         },
1504         "description": "",
1505         "summary": "GET - Controller - toaster2 - toasterSlot"
1506       },
1507       "put": {
1508         "tags": [
1509           "Controller toaster2"
1510         ],
1511         "parameters": [
1512           {
1513             "name": "slotId",
1514             "in": "path",
1515             "required": true,
1516             "schema": {
1517               "type": "string"
1518             }
1519           }
1520         ],
1521         "requestBody": {
1522           "description": "toasterSlot",
1523           "content": {
1524             "application/json": {
1525               "schema": {
1526                 "properties": {
1527                   "toaster2:toasterSlot": {
1528                     "type": "array",
1529                     "items": {
1530                       "$ref": "#/components/schemas/toaster2_toaster_toasterSlot",
1531                       "type": "object"
1532                     }
1533                   }
1534                 }
1535               }
1536             },
1537             "application/xml": {
1538               "schema": {
1539                 "$ref": "#/components/schemas/toaster2_toaster_toasterSlot"
1540               }
1541             }
1542           }
1543         },
1544         "responses": {
1545           "201": {
1546             "description": "Created"
1547           },
1548           "204": {
1549             "description": "Updated"
1550           }
1551         },
1552         "description": "",
1553         "summary": "PUT - toaster2 - Controller - toasterSlot"
1554       },
1555       "delete": {
1556         "tags": [
1557           "Controller toaster2"
1558         ],
1559         "parameters": [
1560           {
1561             "name": "slotId",
1562             "in": "path",
1563             "required": true,
1564             "schema": {
1565               "type": "string"
1566             }
1567           }
1568         ],
1569         "responses": {
1570           "204": {
1571             "description": "Deleted"
1572           }
1573         },
1574         "description": "",
1575         "summary": "DELETE - Controller - toaster2 - toasterSlot"
1576       },
1577       "patch": {
1578         "tags": [
1579           "Controller toaster2"
1580         ],
1581         "parameters": [
1582           {
1583             "name": "slotId",
1584             "in": "path",
1585             "required": true,
1586             "schema": {
1587               "type": "string"
1588             }
1589           }
1590         ],
1591         "requestBody": {
1592           "description": "toasterSlot",
1593           "content": {
1594             "application/yang-data+xml": {
1595               "schema": {
1596                 "$ref": "#/components/schemas/toaster2_toaster_toasterSlot"
1597               }
1598             },
1599             "application/yang-data+json": {
1600               "schema": {
1601                 "properties": {
1602                   "toaster2:toasterSlot": {
1603                     "type": "array",
1604                     "items": {
1605                       "$ref": "#/components/schemas/toaster2_toaster_toasterSlot",
1606                       "type": "object"
1607                     }
1608                   }
1609                 }
1610               }
1611             }
1612           }
1613         },
1614         "responses": {
1615           "204": {
1616             "description": "Updated"
1617           },
1618           "200": {
1619             "description": "OK"
1620           }
1621         },
1622         "description": "",
1623         "summary": "PATCH - toaster2 - Controller - toasterSlot"
1624       }
1625     },
1626     "/rests/operations/toaster2:restock-toaster": {
1627       "post": {
1628         "tags": [
1629           "Controller toaster2"
1630         ],
1631         "parameters": [],
1632         "requestBody": {
1633           "description": "restock-toaster_input",
1634           "content": {
1635             "application/json": {
1636               "schema": {
1637                 "properties": {
1638                   "input": {
1639                     "$ref": "#/components/schemas/toaster2_restock-toaster_input",
1640                     "type": "object"
1641                   }
1642                 }
1643               }
1644             },
1645             "application/xml": {
1646               "schema": {
1647                 "$ref": "#/components/schemas/toaster2_restock-toaster_input"
1648               }
1649             }
1650           }
1651         },
1652         "responses": {
1653           "204": {
1654             "description": "RPC restock-toaster success"
1655           }
1656         },
1657         "description": "Restocks the toaster with the amount of bread specified.",
1658         "summary": "POST - Controller - toaster2 - restock-toaster"
1659       }
1660     }
1661   },
1662   "components": {
1663     "schemas": {
1664       "toaster2_lst_cont1": {
1665         "properties": {
1666           "lst11": {
1667             "description": "",
1668             "type": "array",
1669             "items": {
1670               "$ref": "#/components/schemas/toaster2_lst_cont1_lst11"
1671             }
1672           },
1673           "cont11": {
1674             "$ref": "#/components/schemas/toaster2_lst_cont1_cont11"
1675           }
1676         },
1677         "xml": {
1678           "name": "cont1",
1679           "namespace": "http://netconfcentral.org/ns/toaster2"
1680         },
1681         "description": "",
1682         "title": "toaster2_lst_cont1",
1683         "type": "object"
1684       },
1685       "toaster2_make-toast_input": {
1686         "properties": {
1687           "toasterDoneness": {
1688             "default": 5,
1689             "description": "This variable controls how well-done is the\n      ensuing toast. It should be on a scale of 1 to 10.\n      Toast made at 10 generally is considered unfit\n      for human consumption; toast made at 1 is warmed\n      lightly.",
1690             "type": "integer",
1691             "example": 1,
1692             "format": "int64"
1693           },
1694           "toasterToastType": {
1695             "default": "wheat-bread",
1696             "enum": [
1697               "toast-type",
1698               "white-bread",
1699               "wheat-bread",
1700               "frozen-waffle",
1701               "hash-brown",
1702               "wonder-bread",
1703               "frozen-bagel"
1704             ],
1705             "description": "This variable informs the toaster of the type of\n      material that is being toasted. The toaster\n      uses this information, combined with\n      toasterDoneness, to compute for how\n      long the material must be toasted to achieve\n      the required doneness.",
1706             "type": "string",
1707             "example": "toast-type"
1708           }
1709         },
1710         "xml": {
1711           "name": "input",
1712           "namespace": "http://netconfcentral.org/ns/toaster2"
1713         },
1714         "title": "toaster2_make-toast_input",
1715         "type": "object"
1716       },
1717       "toaster2_lst": {
1718         "properties": {
1719           "cont1": {
1720             "$ref": "#/components/schemas/toaster2_lst_cont1"
1721           },
1722           "lf1": {
1723             "description": "",
1724             "type": "string",
1725             "example": "Some lf1"
1726           },
1727           "lst1": {
1728             "description": "",
1729             "type": "array",
1730             "items": {
1731               "$ref": "#/components/schemas/toaster2_lst_lst1"
1732             }
1733           }
1734         },
1735         "xml": {
1736           "name": "lst",
1737           "namespace": "http://netconfcentral.org/ns/toaster2"
1738         },
1739         "description": "",
1740         "title": "toaster2_lst",
1741         "type": "object"
1742       },
1743       "toaster2_toaster": {
1744         "properties": {
1745           "darknessFactor": {
1746             "default": 1000,
1747             "description": "The darkness factor. Basically, the number of ms to multiple the doneness value by.",
1748             "type": "integer",
1749             "example": 0,
1750             "format": "int64"
1751           },
1752           "toasterSlot": {
1753             "description": "",
1754             "type": "array",
1755             "items": {
1756               "$ref": "#/components/schemas/toaster2_toaster_toasterSlot"
1757             }
1758           }
1759         },
1760         "xml": {
1761           "name": "toaster",
1762           "namespace": "http://netconfcentral.org/ns/toaster2"
1763         },
1764         "description": "Top-level container for all toaster database objects.",
1765         "title": "toaster2_toaster",
1766         "type": "object"
1767       },
1768       "toaster2_lst_lst1": {
1769         "properties": {
1770           "key1": {
1771             "description": "",
1772             "type": "integer",
1773             "example": -2147483648,
1774             "format": "int32"
1775           },
1776           "key2": {
1777             "description": "",
1778             "type": "integer",
1779             "example": -128,
1780             "format": "int32"
1781           },
1782           "lf11": {
1783             "description": "",
1784             "type": "integer",
1785             "example": -32768,
1786             "format": "int32"
1787           }
1788         },
1789         "xml": {
1790           "name": "lst1",
1791           "namespace": "http://netconfcentral.org/ns/toaster2"
1792         },
1793         "description": "",
1794         "title": "toaster2_lst_lst1",
1795         "type": "object"
1796       },
1797       "toaster2_lst_cont1_cont11": {
1798         "properties": {
1799           "lf111": {
1800             "description": "",
1801             "type": "integer",
1802             "example": 0,
1803             "format": "int64"
1804           },
1805           "lf112": {
1806             "description": "",
1807             "type": "string",
1808             "example": "Some lf112"
1809           }
1810         },
1811         "xml": {
1812           "name": "cont11",
1813           "namespace": "http://netconfcentral.org/ns/toaster2"
1814         },
1815         "description": "",
1816         "title": "toaster2_lst_cont1_cont11",
1817         "type": "object"
1818       },
1819       "toaster2_toaster_toasterSlot_slotInfo": {
1820         "properties": {
1821           "numberOfToastPrepared": {
1822             "description": "",
1823             "type": "integer",
1824             "example": 0,
1825             "format": "int64"
1826           }
1827         },
1828         "xml": {
1829           "name": "slotInfo",
1830           "namespace": "http://netconfcentral.org/ns/toaster/augmented"
1831         },
1832         "description": "",
1833         "title": "toaster2_toaster_toasterSlot_slotInfo",
1834         "type": "object"
1835       },
1836       "toaster2_toaster_toasterSlot": {
1837         "properties": {
1838           "slotInfo": {
1839             "$ref": "#/components/schemas/toaster2_toaster_toasterSlot_slotInfo"
1840           },
1841           "slotId": {
1842             "description": "",
1843             "type": "string",
1844             "example": "Some slotId"
1845           }
1846         },
1847         "xml": {
1848           "name": "toasterSlot",
1849           "namespace": "http://netconfcentral.org/ns/toaster2"
1850         },
1851         "description": "",
1852         "title": "toaster2_toaster_toasterSlot",
1853         "type": "object"
1854       },
1855       "toaster2_lst_cont1_lst11": {
1856         "properties": {
1857           "lf111": {
1858             "description": "",
1859             "type": "string",
1860             "example": "Some lf111"
1861           }
1862         },
1863         "xml": {
1864           "name": "lst11",
1865           "namespace": "http://netconfcentral.org/ns/toaster2"
1866         },
1867         "description": "",
1868         "title": "toaster2_lst_cont1_lst11",
1869         "type": "object"
1870       },
1871       "toaster2_restock-toaster_input": {
1872         "properties": {
1873           "amountOfBreadToStock": {
1874             "description": "Indicates the amount of bread to re-stock",
1875             "type": "integer",
1876             "example": 0,
1877             "format": "int64"
1878           }
1879         },
1880         "xml": {
1881           "name": "input",
1882           "namespace": "http://netconfcentral.org/ns/toaster2"
1883         },
1884         "title": "toaster2_restock-toaster_input",
1885         "type": "object"
1886       }
1887     },
1888     "securitySchemes": {
1889       "basicAuth": {
1890         "scheme": "basic",
1891         "type": "http"
1892       }
1893     }
1894   },
1895   "security": [
1896     {
1897       "basicAuth": []
1898     }
1899   ]
1900 }