API Integration Builder
Build API service integrations:
-
Create protocol in Services/{Domain}/
-
Implement client: Async/await, proper errors
-
Add caching: CacheManager integration
-
Register in DI: DIContainer singleton
-
Add tests: Mock for testing
Pattern:
protocol MyAPIProtocol { func fetch() async throws -> Data }
final class MyAPILive: MyAPIProtocol { func fetch() async throws -> Data { // URLSession, error handling, caching } }
Use when: Adding Bible translation API, CloudKit integration, external service