added annotations for api's
[portal.git] / ecomp-portal-widget-ms / widget-ms / src / main / java / org / onap / portalapp / widget / controller / HealthController.java
index 6814f75..8674d8e 100644 (file)
@@ -4,13 +4,14 @@ import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
-
 @RestController
 public class HealthController {
 
-       @RequestMapping(value = { "/health" }, method = RequestMethod.GET, produces = "application/json")
+       @GetMapping(value = { "/health" }, produces = "application/json")
        public HealthStatus getWidgetCatalog(HttpServletRequest request, HttpServletResponse response) {
                return new HealthStatus("ok");
        }