@RequestMapping(value = "/{portfolioRole}/{path:.*}", method = RequestMethod.GET) public ResponseEntity<PortfolioDto> findByPath( @PathVariable("portfolioRole") String portfolioRole, @PathVariable("path") String path) { PortfolioDto portfolioDto = portfolioService.findByPath( path, PortfolioRole.fromValue(portfolioRole), PortfolioConverter.ComponentFetchStrategy.ALL); return response(portfolioDto); }
@RequestMapping(value = "/{portfolioRole}", method = RequestMethod.GET) @Timed public ResponseEntity<PortfolioDto> get( @PathVariable("portfolioRole") String portfolioRole, @UserId Long userId) { return response(portfolioService.get(userId, PortfolioRole.fromValue(portfolioRole))); }