Add table with automatic neighbor relation data
[portal/ric-dashboard.git] / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / controller / XappManagerController.java
index 002bf0e..efb296d 100644 (file)
@@ -75,16 +75,23 @@ public class XappManagerController {
 
        @ApiOperation(value = "Gets the XApp manager client library MANIFEST.MF property Implementation-Version.", response = SuccessTransport.class)
        @RequestMapping(value = DashboardConstants.VERSION_PATH, method = RequestMethod.GET)
-       public SuccessTransport getVersion() {
-               logger.debug("getVersion enter");
+       public SuccessTransport getXappManagerClientVersion() {
                return new SuccessTransport(200, DashboardApplication.getImplementationVersion(HealthApi.class));
        }
 
-       @ApiOperation(value = "Calls the xApp Manager health check.")
-       @RequestMapping(value = "/health", method = RequestMethod.GET)
+       @ApiOperation(value = "Calls the xApp Manager liveness health check.")
+       @RequestMapping(value = "/health/alive", method = RequestMethod.GET)
        public void getHealth(HttpServletResponse response) {
-               logger.debug("getHealt");
-               healthApi.getHealth();
+               logger.debug("getHealth");
+               healthApi.getHealthAlive();
+               response.setStatus(healthApi.getApiClient().getStatusCode().value());
+       }
+
+       @ApiOperation(value = "Calls the xApp Manager readiness health check.")
+       @RequestMapping(value = "/health/ready", method = RequestMethod.GET)
+       public void getHealthReady(HttpServletResponse response) {
+               logger.debug("getHealthReady");
+               healthApi.getHealthReady();
                response.setStatus(healthApi.getApiClient().getStatusCode().value());
        }