I am working on a Springboot project where i need to consume lot of rest APIs. The current project folder structure has a Controller, Model, Service, Dao and Util packages.
-The Util package has a Scheduler, that calls the Service module. -The Service module will then call REST API of a different application and based on result will save data by calling DAO layer.
My doubt is "The part where the service layer method calls rest api". Do i need to place that code logic in a different class called RestClient.java ? If yes then should that class be a part of service package itself or i need to create a different pacakge?