Latest 1.0.2
Homepage https://github.com/stantmob/retrofire
License MIT
Platforms ios 9.0
Dependencies Alamofire, SwiftyJSON
Authors

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

Latest podspec

{
    "name": "Retrofire",
    "version": "1.0.2",
    "summary": "Simply and elegant HTTP Networking in Swift. Based on Alamofire and Retrofit",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "description": "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.",
    "homepage": "https://github.com/stantmob/retrofire",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Rachid Calazans": "[email protected]"
    },
    "social_media_url": "https://twitter.com/rcachidcalazans",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/stantmob/Retrofire.git",
        "tag": "1.0.2"
    },
    "source_files": [
        "Retrofire",
        "Retrofire/**/*.{h,m}",
        "Retrofire/**/*.swift"
    ],
    "exclude_files": "Classes/Exclude",
    "dependencies": {
        "Alamofire": [
            "~> 4.4.0"
        ],
        "SwiftyJSON": []
    },
    "pushed_with_swift_version": "4"
}

Pin It on Pinterest

Share This