X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=platform-logic%2Frestapi-templates%2Fsrc%2Fmain%2Fjson%2Fsdwan-site.json;h=9d9fba4b89ff692010fabbc3bc52ca94b0038e76;hb=f5b2457c6f66e4e357fe469df370d1ce8b4f0cd9;hp=11eee550a79d15f4a65c2a53b998ea5c379f6bbe;hpb=3abd0b494d868f5cb30eea4665946a52956873b3;p=sdnc%2Foam.git diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site.json b/platform-logic/restapi-templates/src/main/json/sdwan-site.json index 11eee550..9d9fba4b 100644 --- a/platform-logic/restapi-templates/src/main/json/sdwan-site.json +++ b/platform-logic/restapi-templates/src/main/json/sdwan-site.json @@ -21,33 +21,41 @@ { "sites": [ { - "id": ${prop.id}, - "name": ${prop.name}, - "Locations": [ + "id": "", + "name": ${prop.site.name}, + "locations": [ { - "name": ${prop.location-name}, - "address": ${prop.location-address}, - "postcode": ${prop.location-postcode} + "name": ${prop.site.location-name}, + "address": ${prop.site.location-address}, + "postcode": ${prop.site.location-postcode}, + "latitude": ${prop.site.location-latitude}, + "longitude": ${prop.site.location-longitude} } ], - "devices": [ - { - "deviceId": ${prop.deviceId}, - "locationName": ${prop.location-name} + + "devices": [${repeat:prop.site.deviceId_length: + { + "deviceId":${prop.site.deviceId[${1}]}, + "locationName": ${prop.site.location-name}, + }, } - ], - "siteType": ${prop.type}, - "role": [${repeat:prop.roles_length: - ${prop.roles[${1}]}, + ], + + "siteType": ${prop.site.type}, + "role": [${repeat:prop.site.roles_length: + ${prop.site.roles[${1}]}, } ], - "controlPoints": [${repeat:prop.controlpoints_length: - ${prop.controlpoints[${1}]}, + "controlPoints": [${repeat:prop.site.controlpoints_length: + ${prop.site.controlpoints[${1}]}, } ], - "description": ${description} + "contact":{ + "emails":[${repeat:prop.site.email_length: + ${prop.site.email[${1}]}, + } + ] + } } ] } - -