I’m going to talk about testing over the next few posts. If you’ve talked to me at any length over the last several years, you know I’ve been …| robnapier.net
Over the course of this series, we’ve started with a simple idea and taken it to some pretty fascinating places. The idea we started with is that a network layer can be abstracted out to the idea of “I send this request, and eventually I get a response”.| Dave DeLong
So, back to our APIClient. When last I left off, I had the following client code: final class APIClient { static let shared = APIClient() let baseURL …| robnapier.net
So far in this series, I’ve created a simple APIClient that can fetch any Fetchable type and decode it from a specific API, and then extracted a …| robnapier.net
In the last section, I ended my little network stack at this point: // Something that can be fetched from the API protocol Fetchable: Decodable { …| robnapier.net
Last time, I mentioned something in passing: I need a new protocol. protocol Fetchable: Decodable { static var apiBase: String { get } } I need a …| robnapier.net