added proper annotation
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / controller / CommonWidgetController.java
index ee17ac0..417a294 100644 (file)
@@ -48,6 +48,7 @@ import org.onap.portalapp.portal.transport.CommonWidgetMeta;
 import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
 import org.springframework.beans.factory.annotation.Autowired;
 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.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
@@ -83,7 +84,7 @@ public class CommonWidgetController extends EPRestrictedBaseController implement
         *            Request parameter.
         * @return Rest response wrapped around a CommonWidgetMeta object.
         */
-       @RequestMapping(value = "/commonWidgets", method = RequestMethod.GET, produces = "application/json")
+       @GetMapping(value = "/commonWidgets", produces = "application/json")
        public PortalRestResponse<CommonWidgetMeta> getWidgetData(HttpServletRequest request,
                        @RequestParam String resourceType) {
                if (!isValidResourceType(resourceType)){