 
 public class ApiClient {
 
+  let encoder = JSONEncoder()
   let decoder = JSONDecoder()
 
   private let httpService = HTTPService()

    return httpService.get(url: apiUrl.fullPath, query: queryDict, headers: headers)
      .map { return try self.decoder.decode(T.self, from: $0.0) }
  }
}

  public init(authorizationToken: String) {
    headers = ["Authorization": authorizationToken,
               "Accept": "application/vnd.github.v3+json"]
    encoder.dateEncodingStrategy = .iso8601
    decoder.dateDecodingStrategy = .iso8601
  }

