Add missing @Bean method to create ggNodebsApi 93/193/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Fri, 24 May 2019 14:34:06 +0000 (10:34 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Fri, 24 May 2019 14:34:06 +0000 (10:34 -0400)
Change-Id: I777d6242ae3f47005fbd821215317865749e41c9
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/AnrXappConfiguration.java
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/controller/AnrXappController.java

index 3a2e810..d6063ab 100644 (file)
@@ -21,6 +21,7 @@ package org.oransc.ric.portal.dashboard.config;
 
 import java.lang.invoke.MethodHandles;
 
+import org.oransc.ric.anrxapp.client.api.GnodebsApi;
 import org.oransc.ric.anrxapp.client.api.HealthApi;
 import org.oransc.ric.anrxapp.client.api.NcrtApi;
 import org.oransc.ric.anrxapp.client.invoker.ApiClient;
@@ -64,6 +65,11 @@ public class AnrXappConfiguration {
                return new HealthApi(apiClient());
        }
 
+       @Bean
+       public GnodebsApi anrGnodebsApi() {
+               return new GnodebsApi(apiClient());
+       }
+
        @Bean
        public NcrtApi anrNcrtApi() {
                return new NcrtApi(apiClient());
index ea52a3a..b3cdcbb 100644 (file)
@@ -136,7 +136,7 @@ public class AnrXappController {
 
        @ApiOperation(value = "Delete neighbor cell relation based on Serving Cell NRCGI and Neighbor Cell NRPCI")
        @RequestMapping(value = "/ncrt/" + PP_SERVING + "/{" + PP_SERVING + "}/" + PP_NEIGHBOR + "/{" + PP_NEIGHBOR
-                       + "}", method = RequestMethod.PUT)
+                       + "}", method = RequestMethod.DELETE)
        public void deleteNcrt(@PathVariable(PP_SERVING) String servingCellNrcgi, //
                        @PathVariable(PP_NEIGHBOR) String neighborCellNrpci, //
                        HttpServletResponse response) {