From b4c7d8d988517b3332cbfb9704f1a25aa5966397 Mon Sep 17 00:00:00 2001
From: "Rishi.Chail" <rishi.chail@est.tech>
Date: Mon, 26 Apr 2021 16:42:11 +0100
Subject: Get Data under anchor using single root Changes for NCMP

Issue-ID: CPS-325

Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I3eb8a1b0c11d0503614cea6839ad7e33adbdd524
---
 cps-ncmp-rest/docs/openapi/ncmproxy.yml                                | 2 --
 .../org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java    | 3 ---
 2 files changed, 5 deletions(-)
 mode change 100644 => 100755 cps-ncmp-rest/docs/openapi/ncmproxy.yml
 mode change 100644 => 100755 cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java

(limited to 'cps-ncmp-rest')

diff --git a/cps-ncmp-rest/docs/openapi/ncmproxy.yml b/cps-ncmp-rest/docs/openapi/ncmproxy.yml
old mode 100644
new mode 100755
index 1bbc096f09..d5358cc5d4
--- a/cps-ncmp-rest/docs/openapi/ncmproxy.yml
+++ b/cps-ncmp-rest/docs/openapi/ncmproxy.yml
@@ -38,8 +38,6 @@ nodeByCmHandleAndXpath:
         $ref: 'components.yaml#/components/responses/Forbidden'
       404:
         $ref: 'components.yaml#/components/responses/NotFound'
-      501:
-        $ref: 'components.yaml#/components/responses/NotImplemented'
 
 nodesByCmHandleAndCpsPath:
   get:
diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java
old mode 100644
new mode 100755
index fccfb712a5..0c877f8ab7
--- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java
+++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java
@@ -57,9 +57,6 @@ public class NetworkCmProxyController implements NetworkCmProxyApi {
     @Override
     public ResponseEntity<Object> getNodeByCmHandleAndXpath(final String cmHandle, @Valid final String xpath,
         @Valid final Boolean includeDescendants) {
-        if (XPATH_ROOT.equals(xpath)) {
-            return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
-        }
         final FetchDescendantsOption fetchDescendantsOption = Boolean.TRUE.equals(includeDescendants)
             ? FetchDescendantsOption.INCLUDE_ALL_DESCENDANTS : FetchDescendantsOption.OMIT_DESCENDANTS;
         final DataNode dataNode = networkCmProxyDataService.getDataNode(cmHandle, xpath, fetchDescendantsOption);
-- 
cgit 1.2.3-korg