By default Alamofire treats any completed request as successful: as long as it can connect to server, and the server responds, it will consider that everything is OK. This means you will be getting a .Success even on this situations when the HTTP status code returned on those calls corresponds to some 4xx HTTP error code.
Is Swift viable in Linux? what kind of applications could I build? In order to provide some insights on those questions, I decided to start building a simple program: a REST client that would send data to an Azure based mobile service.
With Azure we can quickly create a backend for our mobile/web applications. Learn how to set up an Azure backend using easy tables, and mobile/web services.
Simple REST request in Swift 3. A quick guide, through examples, to the most commonly used features of Alamofire.
In this post we will see how we can connect to a RESTFUL service that uses basic authentication in Swift 3.0 using Alamofire, or URLRequest
App Transport Security was intended to protect the user's privacy; Its most immediate affect, however, has been to greet iOS developers around the world with the following error message: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
In this post we will see how to add Web API support to an existing MVC project. Sometimes we have a project that started as simple ASP.NET MVC site, maybe even as one single page project, with no more functionality that display some simple information in the screen. As the time goes by new needs arise, new features are requested, and it becomes convenient to develop a Rest API that will be used by the client to query the server for more information.