diff options
author | 2024-04-17 16:47:55 +0200 | |
---|---|---|
committer | 2025-01-13 14:44:07 +0100 | |
commit | 228ed5743ddeb182281bd1f01d3fff598b188746 (patch) | |
tree | 5cd905e1a548b17d7aa79236b16b9cadeb4ba165 /so-sdn-clients/src | |
parent | 4966674b8bef836222e6aa4ab58ad6a8272a7261 (diff) |
RFC 8040 API Support in SO
-Support for RFC8040 APIs
-Changes in SelfLink at SO while querying
-Allow rpc GENERIC-RESOURCE-API in SDNC output
-RFC OOM Changes- https://gerrit.onap.org/r/c/oom/+/139164
-SDNC-Northbound-3.0.2 version
-SO Compliance RFC8040-Successful Migration
Issue-ID: SO-4127
Change-ID: I93f84f909a814d488f62f8b36606b0644d8b8608
Signed-off-by: sx00562924 <SX00562924@techmahindra.com>
Diffstat (limited to 'so-sdn-clients/src')
-rw-r--r-- | so-sdn-clients/src/main/java/org/onap/so/client/sdnc/SDNCClient.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/so-sdn-clients/src/main/java/org/onap/so/client/sdnc/SDNCClient.java b/so-sdn-clients/src/main/java/org/onap/so/client/sdnc/SDNCClient.java index e29d65857c..ab0f354994 100644 --- a/so-sdn-clients/src/main/java/org/onap/so/client/sdnc/SDNCClient.java +++ b/so-sdn-clients/src/main/java/org/onap/so/client/sdnc/SDNCClient.java @@ -81,10 +81,11 @@ public class SDNCClient { * @throws MapperException * @throws BadResponseException */ + // Build TargetUrl as per RFC-8040 standards public String get(String queryLink) throws MapperException, BadResponseException { String request = ""; String jsonRequest = sdnCommonTasks.buildJsonRequest(request); - String targetUrl = UriBuilder.fromUri(properties.getHost()).path(queryLink).build().toString(); + String targetUrl = properties.getHost() + "/" + queryLink; BaseClient<String, LinkedHashMap<String, Object>> STOClient = new BaseClient<>(); STOClient.setTargetUrl(targetUrl); HttpHeaders httpHeader = sdnCommonTasks.getHttpHeaders(properties.getAuth(), false); |