CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

Retrofire 1.0.2

Retrofire 1.0.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2017
SwiftSwift Version 4
SPMSupports SPM

Maintained by Rachid Calazans.



 
Depends on:
Alamofire~> 4.4.0
SwiftyJSON>= 0
 

Retrofire 1.0.2

Retrofire

Retrofire is a framework written in swift that generate API requests and build models elegantly. We combine two powerful libs, Alamofire and SwiftyJSON to generate a better response to you.

  • Features
  • Instalation
  • Usage
  • Goals

Retrofire turns your HTTP API into a swift protocol.

Protocol implementation sample

Retrofire class generates an implementation of the sample interface.

remoteBuilder implementation sample

Features

  • Do API requests
  • Build response objects
  • error handle

Instalation

###CocoaPods CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate Retrofire into your Xcode project using CocoaPods, specify it in your Podfile:

sample with podfile

Then run:

$ pod install

##Usage ###Making a single request

request sample

###Request a list

request sample

###Building model

building model sample

###Response handling subtitle explain how to do a simple request

request sample

####Response hander subtitle explain response handler

request sample

##Goals

  • select thread to run
  • Multi part request