@baseUrl = http://localhost:8080 @CONFIG_PRELOAD_URL = /config/GENERIC-RESOURCE-API:preload-information/ @CONFIG_PRELOAD_LIST_URL = /config/GENERIC-RESOURCE-API:preload-information/GENERIC-RESOURCE-API:preload-list/ ### GET top level no content-type : bad-media-type GET {{baseUrl}}/restconf{{CONFIG_PRELOAD_URL}} HTTP/1.1 Accept: application/json ### GET top level json format GET {{baseUrl}}/restconf{{CONFIG_PRELOAD_URL}} HTTP/1.1 Content-Type: application/json Accept: application/json ### GET top level xmlformat : 500 error GET {{baseUrl}}/restconf{{CONFIG_PRELOAD_URL}} HTTP/1.1 Content-Type: application/xml Accept: application/xml ### just one entry GET {{baseUrl}}/restconf{{CONFIG_PRELOAD_LIST_URL}}/preload1/network/ HTTP/1.1 content-type: application/json Accept: application/json ### request XML format : 500 error GET {{baseUrl}}/restconf{{CONFIG_PRELOAD_LIST_URL}}/preload1/network/ HTTP/1.1 Content-Type: application/xml Accept: application/xml ### delete all info DELETE {{baseUrl}}/restconf{{CONFIG_PRELOAD_URL}} HTTP/1.1 content-type: application/json ### delete specific entry : 500 error DELETE {{baseUrl}}/restconf{{CONFIG_PRELOAD_LIST_URL}}/preload1/network/ HTTP/1.1 content-type: application/json ### add a new record preload1/network POST {{baseUrl}}/restconf{{CONFIG_PRELOAD_LIST_URL}}/preload1/network/ HTTP/1.1 content-type: application/json { "preload-id": "preload1", "preload-type": "network", "preload-data": { "preload-network-topology-information": { "host-routes": [ { "next-hop": "10.1.12.1", "route-prefix": "12" } ], "is-external-network": false, "is-provider-network": false, "is-shared-network": false, "network-policy": [ { "network-policy-fqdn": "policy-sdnc.onap.org", "network-policy-id": "123" } ], "network-topology-identifier-structure": { "eipam-v4-address-plan": "plan9", "eipam-v6-address-plan": "plan9v6", "is-trunked": true, "network-id": "preload1", "network-instance-group-id": "abc123", "network-name": "syfy", "network-role": "secret", "network-technology": "soupcan", "network-type": "fake", "related-networks": { "related-network": [ { "network-id": "skynet", "network-role": "master", "vlan-tags": { "is-private": true, "lower-tag-id": 0, "upper-tag-id": 0, "vlan-interface": "le0" } } ] }, "segmentation-id": "seg1" }, "physical-network-name": "skynet", "route-table-reference": [ { "route-table-reference-fqdn": "sky.net", "route-table-reference-id": "ref1" } ], "subnets": [ { "addr-from-start": "Y", "cidr-mask": "255.255.0.0", "dhcp-enabled": "Y", "dhcp-end-address": "10.1.2.254", "dhcp-start-address": "10.1.2.1", "gateway-address": "10.1.2.255", "ip-version": "ipv4", "start-address": "10.1.2.1", "subnet-name": "subnet1", "subnet-role": "puppies", "subnet-sequence": 0 } ], "vpn-bindings": [ { "aic-zone": "zone1", "global-route-target": "string", "route-target-role": "string", "vpn-binding-id": "string", "vpn-name": "string" } ] } } } ### POST http://localhost:8080/restconf/config/GENERIC-RESOURCE-API:preload-information/GENERIC-RESOURCE-API:preload-list/preload1/network/ content-type: application/xml 10.1.12.1 12 false false false policy-sdnc.onap.org 123 plan9 plan9v6 true preload1 abc123 syfy secret soupcan fake skynet master true 0 0 le0 seg1 skynet sky.net ref1 Y 255.255.0.0 Y 10.1.2.254 10.1.2.1 10.1.2.255 ipv4 10.1.2.1 subnet1 puppies 0 zone1 string string string string preload1 network