Skip to content

unablys/swift-api

 
 

Repository files navigation

SwiftAPI

Swift API was born as idea of having very light, very fast, written in swift, easy to update and ready to use out of the box library for communication through network. Now that idea is real as cocoapod library.

Installation

Swift-API is available through CocoaPods. To install it, simply add the following line to your Podfile

pod "SwiftAPI"

and run

pod install

Usage

At the beginning, import library by adding

import SwiftAPI

then you can create instance of ApiService

let apiService = ApiService()

or RestService

let rootURL = URL(string:"https://API.SERVER.ADDRESS.COM")
let apiPath = "/v1.0"
let restService = RestService(baseUrl: rootURL, apiPath: apiPath, headerFields: nil)

and now you can start sending requests.

To get familiar with more advanced usage please take a look at usage example available with library.

Authors

License

SwiftAPI is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 93.0%
  • Ruby 4.1%
  • Shell 2.7%
  • Objective-C 0.2%