/** Write the attendee's list of favorite sessions to the body of the response. */ @RequestMapping( value = "/events/{eventId}/sessions/favorites", method = RequestMethod.GET, produces = "application/json") public @ResponseBody List<EventSession> favoriteSessions( @PathVariable Long eventId, Account account) { return eventRepository.findAttendeeFavorites(eventId, account.getId()); }