summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-os/src
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-04-23 13:31:50 +0530
committerRupinderjeet Singh <rupinsi1@in.ibm.com>2020-04-23 11:17:01 +0000
commit72d6d52727345dfbfdd6fdf7532268599f2f7999 (patch)
tree3ccac9655c2e0eced48d0b5dbacc3df20f3400a6 /ecomp-portal-BE-os/src
parent21e503048d2d083e532064de6aab0fcb7ae0dea1 (diff)
added annotations for api's
Issue-ID: PORTAL-865 Change-Id: Ied1d101cb246b9e433c7cc968fa95ca4bcdbfcb5 Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'ecomp-portal-BE-os/src')
-rw-r--r--ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/controller/ExternalAppsRestfulController.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/controller/ExternalAppsRestfulController.java b/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/controller/ExternalAppsRestfulController.java
index 028ae68a..1ddc07da 100644
--- a/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/controller/ExternalAppsRestfulController.java
+++ b/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/portal/controller/ExternalAppsRestfulController.java
@@ -9,7 +9,7 @@
* under the Apache License, Version 2.0 (the "License");
* you may not use this software except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@@ -63,6 +63,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ExceptionHandler;
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;
@@ -84,7 +85,7 @@ public class ExternalAppsRestfulController extends EPRestrictedRESTfulBaseContro
@Autowired
AdminRolesService adminRolesService;
- @RequestMapping(value={"/getFavorites"}, method = RequestMethod.GET,produces = "application/json")
+ @GetMapping(value={"/getFavorites"}, produces = "application/json")
public List<FavoritesFunctionalMenuItemJson> getFavoritesForUser(HttpServletRequest request, HttpServletResponse response) throws Exception {
String loginId = "";
String userAgent = "";
@@ -109,7 +110,7 @@ public class ExternalAppsRestfulController extends EPRestrictedRESTfulBaseContro
return favorites;
}
- @RequestMapping(value={"/functionalMenuItemsForUser"}, method = RequestMethod.GET,produces = "application/json")
+ @GetMapping(value={"/functionalMenuItemsForUser"}, produces = "application/json")
public List<FunctionalMenuItem> getFunctionalMenuItemsForUser(HttpServletRequest request, HttpServletResponse response) throws Exception {
String loginId = "";
String userAgent = "";