I had a Service layer in my app and, for a while, there's just one class for API callsCurrent ScenarioMyAPI ClassauthenticateApp()authenticateUser()Looking in the future, that class will be so huge that will be difficult to maintain it. Even if I group calls by the same module (user authenticate, user profile, etc.) it will be overpopulated. Future ScenarioMyAPI ClassauthenticateApp()authenticateUser()...getSomeDataFromSomeModule()To avoid that, how can I should create modules over several files in a way that is not visible to the other layers?Will some patterns like the Factory Method or Decorator pattern help me? Is there some other pattern that I missed that would solve this?
What is a good way to organize service layer classes?
design patterns;architecture;api;ios