Get Data under anchor using single root 08/120908/1
authorRishi.Chail <rishi.chail@est.tech>
Mon, 26 Apr 2021 15:42:11 +0000 (16:42 +0100)
committerRishi.Chail <rishi.chail@est.tech>
Mon, 26 Apr 2021 15:42:55 +0000 (16:42 +0100)
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 [changed mode: 0644->0755]
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 1bbc096..d5358cc
@@ -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:
old mode 100644 (file)
new mode 100755 (executable)
index fccfb71..0c877f8
@@ -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);