ResponseArray not available in this version?
Closed this issue · 3 comments
CedricVanhaverbeke commented
Hi!
I should be able to get an array of objects in just 1 line using request.responseArray(). This method does not seem to exist? Any thoughts?
tristanhimmelman commented
Hey @CedricVanhaverbeke,
Not sure why you are experiencing difficulties as this method still exists:
public func responseArray<T: BaseMappable>(queue: DispatchQueue? = nil, keyPath: String? = nil, context: MapContext? = nil, completionHandler: @escaping (DataResponse<[T]>) -> Void) -> Self
CedricVanhaverbeke commented
Can you give an example with this method?
tristanhimmelman commented
Please see the tests included in this project