@Test public void getAllApiConfig() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/menu") .contentType(MediaType.APPLICATION_JSON_UTF8) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }
@RequestMapping(value = {"/", "/menu"}, method = RequestMethod.GET) public ServiceResult getAllApiConfig(@CurrentUser LoginUser user) throws Exception { return ServiceResult.success(menuService.getMemus(menuItemConfiguration.getNavigationFlag(user))); }
MenuController { @RequestMapping(value = {"/", "/menu"}, method = RequestMethod.GET) public ServiceResult getAllApiConfig(@CurrentUser LoginUser user) throws Exception { return ServiceResult.success(menuService.getMemus(menuItemConfiguration.getNavigationFlag(user))); } }
MenuController { @RequestMapping(value = {"/", "/menu"}, method = RequestMethod.GET) public ServiceResult getAllApiConfig(@CurrentUser LoginUser user) throws Exception { return ServiceResult.success(menuService.getMemus(menuItemConfiguration.getNavigationFlag(user))); }  }
MenuController { @RequestMapping(value = {"/", "/menu"}, method = RequestMethod.GET) public ServiceResult getAllApiConfig(@CurrentUser LoginUser user) throws Exception { return ServiceResult.success(menuService.getMemus(menuItemConfiguration.getNavigationFlag(user))); }  @RequestMapping(value = {"/", "/menu"}, method = RequestMethod.GET) ServiceResult getAllApiConfig(@CurrentUser LoginUser user); @RequestMapping(value = {"/item"}, method = RequestMethod.GET) ServiceResult<MenuItemModel> getMenuItem(@CurrentUser LoginUser user); @RequestMapping(value = {"/items"}, method = RequestMethod.GET) ServiceResult<List<MenuItemModel>> getMenuItems(@CurrentUser LoginUser user); @RequestMapping(value = {"/linkInfo"}, method = RequestMethod.GET) ServiceResult<List<MenuItemModel>> linkInfo(@CurrentUser LoginUser user); }
MenuController { @RequestMapping(value = {"/", "/menu"}, method = RequestMethod.GET) public ServiceResult getAllApiConfig(@CurrentUser LoginUser user) throws Exception { return ServiceResult.success(menuService.getMemus(menuItemConfiguration.getNavigationFlag(user))); }  @RequestMapping(value = {"/", "/menu"}, method = RequestMethod.GET) ServiceResult getAllApiConfig(@CurrentUser LoginUser user); @RequestMapping(value = {"/item"}, method = RequestMethod.GET) ServiceResult<MenuItemModel> getMenuItem(@CurrentUser LoginUser user); @RequestMapping(value = {"/items"}, method = RequestMethod.GET) ServiceResult<List<MenuItemModel>> getMenuItems(@CurrentUser LoginUser user); @RequestMapping(value = {"/linkInfo"}, method = RequestMethod.GET) ServiceResult<List<MenuItemModel>> linkInfo(@CurrentUser LoginUser user);  }