Closed MartinoMensio closed 7 years ago
Split the jobs and responsibilities between the Service and the Resource class
All the methods in Resource call something in Service, that manages all the data. Resource only checks some conditions to throw appropriate exceptions and builds Response objects
Split the jobs and responsibilities between the Service and the Resource class