iluwatar/java-design-patterns

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

Closed this issue · 2 comments

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.

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

Hi, can i try to make this issue?