GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ishkawa/APIKit: Type-safe networking abstraction layer that associates request type with response type.

BranchesTags
Open more actions menu

Latest commit

 

History

1,017 Commits
1,017 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
APIKit.xcodeproj
APIKit.xcodeproj
 
 
APIKit.xcworkspace
APIKit.xcworkspace
 
 
Configurations
Configurations
 
 
Demo.playground
Demo.playground
 
 
Documentation
Documentation
 
 
Sources/APIKit
Sources/APIKit
 
 
Tests/APIKitTests
Tests/APIKitTests
 
 
.gitignore
.gitignore
 
 
APIKit.podspec
APIKit.podspec
 
 
LICENSE.md
LICENSE.md
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
codecov.yml
codecov.yml
 
 

Repository files navigation

APIKit

Build Status codecov Carthage compatible Version Platform Swift Package Manager

APIKit is a type-safe networking abstraction layer that associates request type with response type.

// SearchRepositoriesRequest conforms to Request protocol.
let request = SearchRepositoriesRequest(query: "swift")

// Session receives an instance of a type that conforms to Request.
Session.send(request) { result in
    switch result {
    case .success(let response):
        // Type of `response` is `[Repository]`,
        // which is inferred from `SearchRepositoriesRequest`.
        print(response)

    case .failure(let error):
        self.printError(error)
    }
}

Requirements

  • Swift 5.3 or later
  • iOS 9.0 or later
  • Mac OS 10.10 or later
  • watchOS 2.0 or later
  • tvOS 9.0 or later

If you use Swift 2.2 or 2.3, try APIKit 2.0.5.

If you use Swift 4.2 or before, try APIKit 4.1.0.

If you use Swift 5.2 or before, try APIKit 5.3.0.

Installation

Carthage

  • Insert github "ishkawa/APIKit" ~> 5.0 to your Cartfile.
  • Run carthage update.
  • Link your app with APIKit.framework in Carthage/Build.

CocoaPods

  • Insert pod 'APIKit', '~> 5.0' to your Podfile.
  • Run pod install.

Note: CocoaPods 1.4.0 is required to install APIKit 5.

Documentation

  • Getting started
  • Defining Request Protocol for Web Service
  • Convenience Parameters and Actual Parameters

Advanced Guides

  • Customizing Networking Backend

Migration Guides

  • APIKit 3 Migration Guide
  • APIKit 2 Migration Guide

About

Type-safe networking abstraction layer that associates request type with response type.

Resources

Readme
MIT license
Activity

Stars

2.0k stars

Watchers

57 watching

Forks

203 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.