Interface AccountService


@FeignClient(name="account-service", configuration=org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration.class) public interface AccountService
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<Account>
    readByAccountNumber(String accountNumber)
    Retrieves an account by its account number.
  • Method Details

    • readByAccountNumber

      @GetMapping("/accounts") org.springframework.http.ResponseEntity<Account> readByAccountNumber(@RequestParam String accountNumber)
      Retrieves an account by its account number.
      Parameters:
      accountNumber - the account number to search for
      Returns:
      the ResponseEntity containing the account