프로젝트
GitHub에서 보기
ishkawa/APIKit
소개
요청 타입과 응답 타입을 연결하는 타입 안전 네트워킹 추상화 계층입니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- -3
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAPIKit
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.0to your Cartfile. - Run
carthage update. - Link your app with
APIKit.frameworkinCarthage/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
Migration Guides
관련 프로젝트 살펴보기
불러오는 중…