REST API Calls with Alamofire
Last time we looked at the quick & dirty way to get access REST APIs in iOS. For simple cases, like a URL shortener, dataTask(with request: completionHandler:)
works just fine. But these days lots of apps have tons of web service calls that are just begging for better handling, like a higher level of abstraction, concise syntax, simpler streaming, pause/resume, progress indicators, …
In Objective-C, this was a job for AFNetworking. In Swift, Alamofire is our option for elegance. Read on →