package pl.piomin.services.customer.client;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import pl.piomin.services.customer.model.Account;

@FeignClient(name = "account-service")
public interface AccountClient {

	@GetMapping("account/customer/{customerId}")
	List<Account> findByCustomer(@PathVariable("customerId") String customerId);
	
}
