@RequestMapping(value = "{accountId}", method = RequestMethod.GET)
    public Account getAccount(@PathVariable ID accountId) {
        return accountService.getAccount(accountId);
    }
@ RequestMapping ( value = "{accountId}" , method = RequestMethod . GET ) public Account getAccount ( @ PathVariable ID accountId ) { return accountService . getAccount ( accountId ) ; }
Gets an account by its ID