Consumo API ServiceImpl
Consumo API ServiceImpl

Consumo API ServiceImpl

Retorna un arreglo:

@Override
public ClienteDTO[] showAll() {
	ResponseEntity<ClienteDTO[]> response = restTemplate.getForEntity(clienteEndpoint, ClienteDTO[].class, new ParameterizedTypeReference<List<ClienteDTO>>(){});
	ClienteDTO[] clientes = response.getBody();
	return clientes;
	}