From e8e72260254d2399279a1497c14abafc06018037 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Sun, 4 Aug 2019 16:06:59 +0300 Subject: align backend get aicZone response fields name with the frontend expectation Issue-ID: VID-378 Signed-off-by: Eylon Malin Change-Id: Ib43b5c75ce0c841aec6e4c42bef78354ddf30493 Signed-off-by: Eylon Malin --- .../src/main/java/org/onap/vid/aai/model/AaiGetAicZone/AicZones.java | 1 + .../src/main/java/org/onap/vid/aai/model/AaiGetAicZone/Zone.java | 2 ++ 2 files changed, 3 insertions(+) (limited to 'vid-app-common/src/main/java/org') diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/AicZones.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/AicZones.java index 77553a687..07bb191a9 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/AicZones.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/AicZones.java @@ -36,6 +36,7 @@ public final class AicZones { this.zones = Collections.unmodifiableList(zones); } + @JsonProperty("zone") public List getZones() { return zones; } diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/Zone.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/Zone.java index c36618024..df4fd6495 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/Zone.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetAicZone/Zone.java @@ -37,10 +37,12 @@ public final class Zone { this.zoneName = zoneName; } + @JsonProperty("zone-id") public String getZoneId() { return zoneId; } + @JsonProperty("zone-name") public String getZoneName() { return zoneName; } -- cgit 1.2.3-korg