f2519149d62830a13756aab1fddccbda65021090
[transportpce.git] / lighty / docs / TransportPCE.postman_collection.json
1 {
2     "variables": [],
3     "info": {
4         "name": "TransportPCE",
5         "_postman_id": "2a8c7902-5793-e48c-ebab-72256fcac793",
6         "description": "",
7         "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
8     },
9     "item": [
10         {
11             "name": "test_portmapping",
12             "description": "",
13             "item": [
14                 {
15                     "name": "test_01_rdm_device_connected",
16                     "request": {
17                         "auth": {
18                             "type": "basic",
19                             "basic": {
20                                 "username": "admin",
21                                 "password": "admin",
22                                 "saveHelperData": true,
23                                 "showPassword": false
24                             }
25                         },
26                         "url": "http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/ROADMA",
27                         "method": "PUT",
28                         "header": [
29                             {
30                                 "key": "Content-Type",
31                                 "value": "application/json",
32                                 "description": ""
33                             },
34                             {
35                                 "key": "Authorization",
36                                 "value": "Basic YWRtaW46YWRtaW4=",
37                                 "description": ""
38                             }
39                         ],
40                         "body": {
41                             "mode": "raw",
42                             "raw": "{\n  \"node\" : {\n    \"node-id\": \"ROADMA\",\n    \"host\": \"127.0.0.1\",\n    \"port\": 17830,\n    \"username\": \"admin\",\n    \"password\": \"admin\",\n    \"tcp-only\": false,\n    \"keepalive-delay\": 0,\n    \"pass-through\": {}\n  }\n}\n"
43                         },
44                         "description": "connect device 01"
45                     },
46                     "response": []
47                 },
48                 {
49                     "name": "test_02_rdm_device_connected",
50                     "request": {
51                         "url": "http://localhost:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/ROADMA",
52                         "method": "GET",
53                         "header": [],
54                         "body": {},
55                         "description": ""
56                     },
57                     "response": []
58                 },
59                 {
60                     "name": "test_03_rdm_portmapping_DEG1_TTP_TXRX",
61                     "request": {
62                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/ROADMA/mapping/DEG1-TTP-TXRX",
63                         "method": "GET",
64                         "header": [],
65                         "body": {},
66                         "description": ""
67                     },
68                     "response": []
69                 },
70                 {
71                     "name": "test_04_rdm_portmapping_SRG1_PP7_TXRX",
72                     "request": {
73                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/ROADMA/mapping/SRG1-PP7-TXRX",
74                         "method": "GET",
75                         "header": [],
76                         "body": {},
77                         "description": ""
78                     },
79                     "response": []
80                 },
81                 {
82                     "name": "test_05_rdm_portmapping_SRG3_PP1_TXRX",
83                     "request": {
84                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/ROADMA/mapping/SRG3-PP1-TXRX",
85                         "method": "GET",
86                         "header": [],
87                         "body": {},
88                         "description": ""
89                     },
90                     "response": []
91                 },
92                 {
93                     "name": "test_06_xpdr_device_connected",
94                     "request": {
95                         "url": "http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/XPDRA",
96                         "method": "PUT",
97                         "header": [
98                             {
99                                 "key": "Content-Type",
100                                 "value": "application/json",
101                                 "description": ""
102                             }
103                         ],
104                         "body": {
105                             "mode": "raw",
106                             "raw": "{\n  \"node\" : {\n    \"node-id\": \"XPDRA\",\n    \"host\": \"127.0.0.1\",\n    \"port\": 17831,\n    \"username\": \"admin\",\n    \"password\": \"admin\",\n    \"tcp-only\": false,\n    \"keepalive-delay\": 0,\n    \"pass-through\": {}\n  }\n}"
107                         },
108                         "description": ""
109                     },
110                     "response": []
111                 },
112                 {
113                     "name": "test_07_xpdr_device_connected",
114                     "request": {
115                         "url": "http://localhost:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/XPDRA",
116                         "method": "GET",
117                         "header": [],
118                         "body": {},
119                         "description": ""
120                     },
121                     "response": []
122                 },
123                 {
124                     "name": "test_08_xpdr_portmapping_NETWORK1",
125                     "request": {
126                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/XPDRA/mapping/XPDR1-NETWORK1",
127                         "method": "GET",
128                         "header": [],
129                         "body": {},
130                         "description": ""
131                     },
132                     "response": []
133                 },
134                 {
135                     "name": "test_09_xpdr_portmapping_NETWORK2",
136                     "request": {
137                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/XPDRA/mapping/XPDR1-NETWORK2",
138                         "method": "GET",
139                         "header": [],
140                         "body": {},
141                         "description": ""
142                     },
143                     "response": []
144                 },
145                 {
146                     "name": "test_10_xpdr_portmapping_CLIENT1",
147                     "request": {
148                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/XPDRA/mapping/XPDR1-CLIENT1",
149                         "method": "GET",
150                         "header": [],
151                         "body": {},
152                         "description": ""
153                     },
154                     "response": []
155                 },
156                 {
157                     "name": "test_11_xpdr_portmapping_CLIENT2",
158                     "request": {
159                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/XPDRA/mapping/XPDR1-CLIENT2",
160                         "method": "GET",
161                         "header": [],
162                         "body": {},
163                         "description": ""
164                     },
165                     "response": []
166                 },
167                 {
168                     "name": "test_12_xpdr_portmapping_CLIENT4",
169                     "request": {
170                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/XPDRA/mapping/XPDR1-CLIENT4",
171                         "method": "GET",
172                         "header": [],
173                         "body": {},
174                         "description": ""
175                     },
176                     "response": []
177                 },
178                 {
179                     "name": "test_13_xpdr_device_disconnected",
180                     "request": {
181                         "url": "http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/XPDRA",
182                         "method": "DELETE",
183                         "header": [],
184                         "body": {},
185                         "description": ""
186                     },
187                     "response": []
188                 },
189                 {
190                     "name": "test_14_xpdr_device_disconnected",
191                     "request": {
192                         "url": "http://localhost:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/XPDRA",
193                         "method": "GET",
194                         "header": [],
195                         "body": {},
196                         "description": ""
197                     },
198                     "response": []
199                 },
200                 {
201                     "name": "test_15_xpdr_device_disconnected",
202                     "request": {
203                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/XPDRA",
204                         "method": "GET",
205                         "header": [],
206                         "body": {},
207                         "description": ""
208                     },
209                     "response": []
210                 },
211                 {
212                     "name": "test_16_rdm_device_disconnected",
213                     "request": {
214                         "url": "http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/ROADMA",
215                         "method": "DELETE",
216                         "header": [],
217                         "body": {},
218                         "description": ""
219                     },
220                     "response": []
221                 },
222                 {
223                     "name": "test_17_rdm_device_disconnected",
224                     "request": {
225                         "url": "http://localhost:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/ROADMA",
226                         "method": "GET",
227                         "header": [],
228                         "body": {},
229                         "description": ""
230                     },
231                     "response": []
232                 },
233                 {
234                     "name": "test_18_rdm_device_disconnected",
235                     "request": {
236                         "url": "http://localhost:8181/restconf/config/transportpce-portmapping:network/nodes/ROADMA",
237                         "method": "GET",
238                         "header": [],
239                         "body": {},
240                         "description": ""
241                     },
242                     "response": []
243                 }
244             ]
245         },
246         {
247             "name": "Get Modules",
248             "request": {
249                 "auth": {
250                     "type": "basic",
251                     "basic": {
252                         "username": "admin",
253                         "password": "admin",
254                         "saveHelperData": true,
255                         "showPassword": false
256                     }
257                 },
258                 "url": "http://localhost:8181/restconf/modules",
259                 "method": "GET",
260                 "header": [
261                     {
262                         "key": "Authorization",
263                         "value": "Basic YWRtaW46YWRtaW4=",
264                         "description": ""
265                     }
266                 ],
267                 "body": {
268                     "mode": "raw",
269                     "raw": ""
270                 },
271                 "description": "Get installed yang models "
272             },
273             "response": []
274         },
275         {
276             "name": "Get List Of Network Topologies",
277             "request": {
278                 "auth": {
279                     "type": "basic",
280                     "basic": {
281                         "username": "admin",
282                         "password": "admin",
283                         "saveHelperData": true,
284                         "showPassword": false
285                     }
286                 },
287                 "url": "http://localhost:8181/restconf/config/network-topology:network-topology",
288                 "method": "GET",
289                 "header": [
290                     {
291                         "key": "Authorization",
292                         "value": "Basic YWRtaW46YWRtaW4=",
293                         "description": ""
294                     }
295                 ],
296                 "body": {},
297                 "description": "Get List Of Network Topologies"
298             },
299             "response": []
300         },
301         {
302             "name": "Create NetConf device ",
303             "request": {
304                 "auth": {
305                     "type": "basic",
306                     "basic": {
307                         "username": "admin",
308                         "password": "admin",
309                         "saveHelperData": true,
310                         "showPassword": false
311                     }
312                 },
313                 "url": "http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/new-netconf-device",
314                 "method": "PUT",
315                 "header": [
316                     {
317                         "key": "Content-Type",
318                         "value": "application/json",
319                         "description": ""
320                     },
321                     {
322                         "key": "Authorization",
323                         "value": "Basic YWRtaW46YWRtaW4=",
324                         "description": ""
325                     }
326                 ],
327                 "body": {
328                     "mode": "raw",
329                     "raw": "{\n  \"node\" : {\n    \"node-id\": \"new-netconf-device\",\n    \"host\": \"127.0.0.1\",\n    \"port\": 17830,\n    \"username\": \"admin\",\n    \"password\": \"admin\",\n    \"tcp-only\": false,\n    \"keepalive-delay\": 0\n  }\n}\n"
330                 },
331                 "description": "Create NetConf device "
332             },
333             "response": []
334         },
335         {
336             "name": "disconnect device 01",
337             "request": {
338                 "url": "http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/ROADMA",
339                 "method": "DELETE",
340                 "header": [],
341                 "body": {},
342                 "description": "Delete NetConf device"
343             },
344             "response": []
345         },
346         {
347             "name": "disconnect device 02",
348             "request": {
349                 "auth": {
350                     "type": "basic",
351                     "basic": {
352                         "username": "admin",
353                         "password": "admin",
354                         "saveHelperData": true,
355                         "showPassword": false
356                     }
357                 },
358                 "url": "http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/XPDRA",
359                 "method": "DELETE",
360                 "header": [
361                     {
362                         "key": "Authorization",
363                         "value": "Basic YWRtaW46YWRtaW4=",
364                         "description": ""
365                     }
366                 ],
367                 "body": {},
368                 "description": "Delete NetConf device"
369             },
370             "response": []
371         },
372         {
373             "name": "Get Topologies Operational",
374             "request": {
375                 "auth": {
376                     "type": "basic",
377                     "basic": {
378                         "username": "admin",
379                         "password": "admin",
380                         "saveHelperData": true,
381                         "showPassword": false
382                     }
383                 },
384                 "url": "http://localhost:8181/restconf/operational/network-topology:network-topology",
385                 "method": "GET",
386                 "header": [
387                     {
388                         "key": "Authorization",
389                         "value": "Basic YWRtaW46YWRtaW4=",
390                         "description": ""
391                     }
392                 ],
393                 "body": {},
394                 "description": "Get Topologies Operational"
395             },
396             "response": []
397         },
398         {
399             "name": "connect device 01",
400             "request": {
401                 "auth": {
402                     "type": "basic",
403                     "basic": {
404                         "username": "admin",
405                         "password": "admin",
406                         "saveHelperData": true,
407                         "showPassword": false
408                     }
409                 },
410                 "url": "http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/ROADMA",
411                 "method": "PUT",
412                 "header": [
413                     {
414                         "key": "Content-Type",
415                         "value": "application/json",
416                         "description": ""
417                     },
418                     {
419                         "key": "Authorization",
420                         "value": "Basic YWRtaW46YWRtaW4=",
421                         "description": ""
422                     }
423                 ],
424                 "body": {
425                     "mode": "raw",
426                     "raw": "{\n  \"node\" : {\n    \"node-id\": \"ROADMA\",\n    \"host\": \"127.0.0.1\",\n    \"port\": 17830,\n    \"username\": \"admin\",\n    \"password\": \"admin\",\n    \"tcp-only\": false,\n    \"keepalive-delay\": 0,\n    \"pass-through\": {}\n  }\n}\n"
427                 },
428                 "description": "connect device 01"
429             },
430             "response": []
431         },
432         {
433             "name": "connect device 02",
434             "request": {
435                 "auth": {
436                     "type": "basic",
437                     "basic": {
438                         "username": "admin",
439                         "password": "admin",
440                         "saveHelperData": true,
441                         "showPassword": false
442                     }
443                 },
444                 "url": "http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/ROADMA",
445                 "method": "PUT",
446                 "header": [
447                     {
448                         "key": "Content-Type",
449                         "value": "application/json",
450                         "description": ""
451                     },
452                     {
453                         "key": "Authorization",
454                         "value": "Basic YWRtaW46YWRtaW4=",
455                         "description": ""
456                     }
457                 ],
458                 "body": {
459                     "mode": "raw",
460                     "raw": "{\n  \"node\" : {\n    \"node-id\": \"XPDRA\",\n    \"host\": \"127.0.0.1\",\n    \"port\": 17831,\n    \"username\": \"admin\",\n    \"password\": \"admin\",\n    \"tcp-only\": false,\n    \"keepalive-delay\": 0,\n    \"pass-through\": {}\n  }\n}\n"
461                 },
462                 "description": "connect device 02"
463             },
464             "response": []
465         }
466     ]
467 }