Commit bd0a4437 authored by Shaphen Pangburn's avatar Shaphen Pangburn

Modified order api endpoint to 'customer'

parent a8faaf31
......@@ -102,7 +102,7 @@ public class OrderService {
}
public Flux<Order> getOrderFromOmsAPI(String userId){
return WebClient.create(String.format("%s/api/orders/byCustomer/%s", orderManagementUrl,userId))
return WebClient.create(String.format("%s/api/orders/customer/%s", orderManagementUrl,userId))
.get()
.retrieve()
.bodyToFlux(Order.class);
......
......@@ -41,7 +41,7 @@ public class ProductService {
public Flux<Promotion> getAllPromotions() {
return WebClient
.builder()
.baseUrl(promoManagementUrl)
.baseUrl("http://localhost:8082")
.build()
.get()
.uri("/api/promos")
......
......@@ -9,10 +9,12 @@ const receiveAllProducts = products => ({
products
})
const receiveAllPromotions = promotions => ({
const receiveAllPromotions = promotions => {
return {
type: RECEIVE_ALL_PROMOTIONS,
promotions
})
}
}
const receiveAllProductsAndPromotions = prodsAndPromos => ({
type: RECEIVE_ALL_PRODUCTS_AND_PROMOTIONS,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment