From 123c6db9d03f6faa5563a81c1f95ed11ca7a779d Mon Sep 17 00:00:00 2001 From: Nibras Ammar Date: Sat, 28 Dec 2024 08:37:33 +0100 Subject: [PATCH] pricing communication final update --- .../microservices/order_service/service/PricingService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/order/src/main/java/com/microservices/order_service/service/PricingService.java b/order/src/main/java/com/microservices/order_service/service/PricingService.java index 8160ba23..dae9db43 100644 --- a/order/src/main/java/com/microservices/order_service/service/PricingService.java +++ b/order/src/main/java/com/microservices/order_service/service/PricingService.java @@ -17,14 +17,14 @@ public class PricingService { private WebClient webClient; public PricingService(WebClient.Builder webClientBuilder) { - this.webClient = webClientBuilder.baseUrl("http://localhost:8086/pricing/cart-total").build(); + this.webClient = webClientBuilder.baseUrl("http://localhost:8086/pricing/purchase-total").build(); } public cartResponse checkPrice(List cartItems) { return webClient.post() - .uri("http://localhost:8086/pricing/cart-total") + .uri("http://localhost:8086/pricing/purchase-total") .bodyValue(cartItems) .retrieve() .bodyToMono(new ParameterizedTypeReference() {})