iluwatar / java-design-patterns

Design patterns implemented in Java
https://java-design-patterns.com
Other
88.25k stars 26.19k forks source link

api-gateway - create a new class, PriceService to return the price to the controller #2904

Closed tal-zigdong closed 2 months ago

tal-zigdong commented 2 months ago

We should remove the whole of the logic from the controller and move this logic to a service. move logic from api-gateway/price-microservice/src/main/java/com/iluwatar/price/microservice/PriceController.java to a new class api-gateway/price-microservice/src/main/java/com/iluwatar/price/microservice/PriceService.java and call from the controller to this service.

iluwatar commented 2 months ago

There's no logic, it simply returns a static number

Romo4ka-bot commented 2 months ago

Hi, can i try to make this issue?