Postman collection
[smo/o1.git] / scripts / postman / O-RAN Collection.postman_collection.json
1 {
2         "info": {
3                 "_postman_id": "d8aba7a2-7cba-4a21-a6f8-59ca308d39d1",
4                 "name": "O-RAN Collection",
5                 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6         },
7         "item": [
8                 {
9                         "name": "Get topology",
10                         "request": {
11                                 "method": "GET",
12                                 "header": [
13                                         {
14                                                 "key": "Authorization",
15                                                 "value": "Basic YWRtaW46YWRtaW4=",
16                                                 "type": "text"
17                                         },
18                                         {
19                                                 "key": "Content-Type",
20                                                 "value": "application/json",
21                                                 "type": "text"
22                                         }
23                                 ],
24                                 "url": {
25                                         "raw": "http://127.0.0.1:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=testtool",
26                                         "protocol": "http",
27                                         "host": [
28                                                 "127",
29                                                 "0",
30                                                 "0",
31                                                 "1"
32                                         ],
33                                         "port": "8181",
34                                         "path": [
35                                                 "rests",
36                                                 "data",
37                                                 "network-topology:network-topology",
38                                                 "topology=topology-netconf",
39                                                 "node=testtool"
40                                         ]
41                                 }
42                         },
43                         "response": []
44                 },
45                 {
46                         "name": "Get interfaces",
47                         "protocolProfileBehavior": {
48                                 "disableBodyPruning": true
49                         },
50                         "request": {
51                                 "method": "GET",
52                                 "header": [
53                                         {
54                                                 "key": "Authorization",
55                                                 "value": "Basic YWRtaW46YWRtaW4=",
56                                                 "type": "text"
57                                         },
58                                         {
59                                                 "key": "Content-Type",
60                                                 "value": "application/json",
61                                                 "type": "text"
62                                         }
63                                 ],
64                                 "body": {
65                                         "mode": "raw",
66                                         "raw": ""
67                                 },
68                                 "url": {
69                                         "raw": "http://localhost:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=testtool/yang-ext:mount/ietf-interfaces:interfaces",
70                                         "protocol": "http",
71                                         "host": [
72                                                 "localhost"
73                                         ],
74                                         "port": "8181",
75                                         "path": [
76                                                 "rests",
77                                                 "data",
78                                                 "network-topology:network-topology",
79                                                 "topology=topology-netconf",
80                                                 "node=testtool",
81                                                 "yang-ext:mount",
82                                                 "ietf-interfaces:interfaces"
83                                         ]
84                                 }
85                         },
86                         "response": []
87                 },
88                 {
89                         "name": "Feed interfaces",
90                         "protocolProfileBehavior": {
91                                 "disabledSystemHeaders": {
92                                         "content-type": true
93                                 }
94                         },
95                         "request": {
96                                 "method": "PUT",
97                                 "header": [
98                                         {
99                                                 "key": "Authorization",
100                                                 "type": "text",
101                                                 "value": "Basic YWRtaW46YWRtaW4="
102                                         },
103                                         {
104                                                 "key": "Content-Type",
105                                                 "type": "text",
106                                                 "value": "application/json"
107                                         }
108                                 ],
109                                 "body": {
110                                         "mode": "raw",
111                                         "raw": "{\n  \"ietf-interfaces:interfaces\": {\n    \"ietf-interfaces:interface\": [\n      {\n        \"ietf-interfaces:name\": \"NameOfInterface\",\n        \"ietf-interfaces:description\": \"Some description\",\n        \"ietf-interfaces:type\": \"ietf-interfaces:interface-type\",\n        \"ietf-interfaces:enabled\": \"true\",\n        \"ietf-interfaces:link-up-down-trap-enable\": \"enabled\",\n        \"ietf-interfaces:o-ran-interfaces:base-interface\": \"Some name\",\n        \"ietf-interfaces:o-ran-interfaces:vlan-id\": \"1\",\n        \"ietf-interfaces:o-ran-interfaces:mac-address\": \"9F:B5:fD:Fe:A0:eE\",\n        \"ietf-interfaces:o-ran-interfaces:port-reference\": {\n          \"ietf-interfaces:o-ran-interfaces:port-name\": \"0\",\n          \"ietf-interfaces:o-ran-interfaces:port-number\": \"0\"\n        },\n        \"ietf-interfaces:o-ran-interfaces:alias-macs\": [\n          \"4c:2D:Cb:Ce:bF:d2\"\n        ],\n        \"ietf-interfaces:ietf-ip:ipv4\": {\n          \"ietf-interfaces:ietf-ip:enabled\": \"true\",\n          \"ietf-interfaces:ietf-ip:forwarding\": \"false\",\n          \"ietf-interfaces:ietf-ip:mtu\": \"68\",\n          \"ietf-interfaces:ietf-ip:address\": [\n            {\n              \"ietf-interfaces:ietf-ip:ip\": \".1\",\n              \"ietf-ip:netmask\": \"210.0.0.0\"\n            }\n          ],\n          \"ietf-interfaces:ietf-ip:neighbor\": [\n            {\n              \"ietf-interfaces:ietf-ip:ip\": \"4\",\n              \"ietf-interfaces:ietf-ip:link-layer-address\": \"9D\"\n            }\n          ],\n          \"ietf-interfaces:o-ran-interfaces:diffserv-markings\": {\n            \"ietf-interfaces:o-ran-interfaces:u-plane-marking\": \"46\",\n            \"ietf-interfaces:o-ran-interfaces:c-plane-marking\": \"46\",\n            \"ietf-interfaces:o-ran-interfaces:s-plane-marking\": \"46\",\n            \"ietf-interfaces:o-ran-interfaces:other-marking\": \"0\",\n            \"ietf-interfaces:o-ran-interfaces:enhanced-uplane-markings\": [\n              {\n                \"ietf-interfaces:o-ran-interfaces:up-marking-name\": \"Some up-marking-name\",\n                \"ietf-interfaces:o-ran-interfaces:enhanced-marking\": \"0\"\n              }\n            ]\n          },\n          \"ietf-interfaces:o-ran-interfaces:m-plane-marking\": \"18\"\n        },\n        \"ietf-interfaces:ietf-ip:ipv6\": {\n          \"ietf-interfaces:ietf-ip:enabled\": \"true\",\n          \"ietf-interfaces:ietf-ip:forwarding\": \"false\",\n          \"ietf-interfaces:ietf-ip:mtu\": \"1280\",\n          \"ietf-interfaces:ietf-ip:address\": [\n            {\n              \"ietf-interfaces:ietf-ip:ip\": \"3\",\n              \"ietf-interfaces:ietf-ip:prefix-length\": \"0\"\n            }\n          ],\n          \"ietf-interfaces:ietf-ip:neighbor\": [\n            {\n              \"ietf-interfaces:ietf-ip:ip\": \"c\",\n              \"ietf-interfaces:ietf-ip:link-layer-address\": \"6F:dB:cE:1E:8E\"\n            }\n          ],\n          \"ietf-interfaces:ietf-ip:dup-addr-detect-transmits\": \"1\",\n          \"ietf-interfaces:ietf-ip:autoconf\": {\n            \"ietf-interfaces:ietf-ip:create-global-addresses\": \"true\",\n            \"ietf-interfaces:ietf-ip:create-temporary-addresses\": \"false\",\n            \"ietf-interfaces:ietf-ip:temporary-valid-lifetime\": \"604800\",\n            \"ietf-interfaces:ietf-ip:temporary-preferred-lifetime\": \"86400\"\n          },\n          \"ietf-interfaces:o-ran-interfaces:diffserv-markings\": {\n            \"ietf-interfaces:o-ran-interfaces:u-plane-marking\": \"46\",\n            \"ietf-interfaces:o-ran-interfaces:c-plane-marking\": \"46\",\n            \"ietf-interfaces:o-ran-interfaces:s-plane-marking\": \"46\",\n            \"ietf-interfaces:o-ran-interfaces:other-marking\": \"0\",\n            \"ietf-interfaces:o-ran-interfaces:enhanced-uplane-markings\": [\n              {\n                \"ietf-interfaces:o-ran-interfaces:up-marking-name\": \"Some up-marking-name\",\n                \"ietf-interfaces:o-ran-interfaces:enhanced-marking\": \"0\"\n              }\n            ]\n          },\n          \"ietf-interfaces:o-ran-interfaces:m-plane-marking\": \"18\"\n        },\n        \"ietf-interfaces:o-ran-interfaces:l2-mtu\": \"1500\",\n        \"ietf-interfaces:o-ran-interfaces:vlan-tagging\": \"true\",\n        \"ietf-interfaces:o-ran-interfaces:class-of-service\": {\n          \"ietf-interfaces:o-ran-interfaces:u-plane-marking\": \"7\",\n          \"ietf-interfaces:o-ran-interfaces:c-plane-marking\": \"7\",\n          \"ietf-interfaces:o-ran-interfaces:m-plane-marking\": \"2\",\n          \"ietf-interfaces:o-ran-interfaces:s-plane-marking\": \"7\",\n          \"ietf-interfaces:o-ran-interfaces:other-marking\": \"1\",\n          \"ietf-interfaces:o-ran-interfaces:enhanced-uplane-markings\": [\n            {\n              \"ietf-interfaces:o-ran-interfaces:up-marking-name\": \"Some up-marking-name\",\n              \"ietf-interfaces:o-ran-interfaces:enhanced-marking\": \"0\"\n            }\n          ]\n        }\n      }\n    ]\n  }\n}"
112                                 },
113                                 "url": {
114                                         "raw": "http://localhost:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=testtool/yang-ext:mount/ietf-interfaces:interfaces",
115                                         "protocol": "http",
116                                         "host": [
117                                                 "localhost"
118                                         ],
119                                         "port": "8181",
120                                         "path": [
121                                                 "rests",
122                                                 "data",
123                                                 "network-topology:network-topology",
124                                                 "topology=topology-netconf",
125                                                 "node=testtool",
126                                                 "yang-ext:mount",
127                                                 "ietf-interfaces:interfaces"
128                                         ]
129                                 }
130                         },
131                         "response": []
132                 },
133                 {
134                         "name": "Delete interfaces",
135                         "protocolProfileBehavior": {
136                                 "disabledSystemHeaders": {
137                                         "content-type": true
138                                 }
139                         },
140                         "request": {
141                                 "method": "DELETE",
142                                 "header": [
143                                         {
144                                                 "key": "Authorization",
145                                                 "type": "text",
146                                                 "value": "Basic YWRtaW46YWRtaW4="
147                                         },
148                                         {
149                                                 "key": "Content-Type",
150                                                 "type": "text",
151                                                 "value": "application/json"
152                                         }
153                                 ],
154                                 "body": {
155                                         "mode": "raw",
156                                         "raw": ""
157                                 },
158                                 "url": {
159                                         "raw": "http://localhost:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=testtool/yang-ext:mount/ietf-interfaces:interfaces",
160                                         "protocol": "http",
161                                         "host": [
162                                                 "localhost"
163                                         ],
164                                         "port": "8181",
165                                         "path": [
166                                                 "rests",
167                                                 "data",
168                                                 "network-topology:network-topology",
169                                                 "topology=topology-netconf",
170                                                 "node=testtool",
171                                                 "yang-ext:mount",
172                                                 "ietf-interfaces:interfaces"
173                                         ]
174                                 }
175                         },
176                         "response": []
177                 }
178         ],
179         "event": [
180                 {
181                         "listen": "prerequest",
182                         "script": {
183                                 "id": "f0581a16-5717-4835-b950-28f8415dbdd6",
184                                 "type": "text/javascript",
185                                 "exec": [
186                                         ""
187                                 ]
188                         }
189                 },
190                 {
191                         "listen": "test",
192                         "script": {
193                                 "id": "cfbe34e9-a714-4e4d-8c68-338c2b8f4e40",
194                                 "type": "text/javascript",
195                                 "exec": [
196                                         ""
197                                 ]
198                         }
199                 }
200         ],
201         "protocolProfileBehavior": {}
202 }