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.
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 classapi-gateway/price-microservice/src/main/java/com/iluwatar/price/microservice/PriceService.java
and call from the controller to this service.