diff options
author | PATTANAYAK, SAUMYA SWARUP (sp931a) <sp931a@att.com> | 2020-11-24 16:32:15 -0500 |
---|---|---|
committer | SAUMYA PATTANAYAK <sp931a@att.com> | 2020-11-25 20:01:52 +0000 |
commit | e139ae6a162a7882d6d40203287a3e906a42564c (patch) | |
tree | 4a5bc823673eaa28106165ba059e80e484b68a92 /vid-app-common/src/main/java/org | |
parent | 946d03782b054ab32d9b56ef376b77e40fbf0acf (diff) |
filter a&ai query to discard relationship list
Issue-ID: VID-924
Change-Id: I1bb8bad294f5a5fcceb80f05177e50ad7d14e40d
Signed-off-by: PATTANAYAK, SAUMYA SWARUP (sp931a) <sp931a@att.com>
Diffstat (limited to 'vid-app-common/src/main/java/org')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java index e25fa8574..00137b60c 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/AaiClient.java @@ -546,7 +546,11 @@ public class AaiClient implements AaiClientInterface { public AaiResponse<Services> getSubscriberData(String subscriberId, boolean omitServiceInstances) { String depth = omitServiceInstances ? "1" : "2"; AaiResponse<Services> subscriberDataResponse; - Response resp = doAaiGet(BUSINESS_CUSTOMERS_CUSTOMER + subscriberId + "?depth=" + depth, false); + String query = depth.equals("1") ? + BUSINESS_CUSTOMERS_CUSTOMER + subscriberId + "?depth=" + depth : + BUSINESS_CUSTOMERS_CUSTOMER + subscriberId + "?depth=" + depth +"&nodes-only"; + + Response resp = doAaiGet(query, false); subscriberDataResponse = processAaiResponse(resp, Services.class, null); return subscriberDataResponse; } |