TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2016 |
SPMSupports SPM | ✗ |
Depends on: | |
BrickRequest | ~> 0.4.0 |
SwiftyJSON | ~> 2.3.1 |
RxSwift | ~> 2.0 |
Example usage of BrickRequest.
RESTRequest’s dependencies.
struct GetUsers: GETRequestType {
var path: String {
return "/user"
}
var parameterJSON: JSON {
let json = JSON([
"limit" : 10,
"page" : 1,
])
return json
}
}
let context = GetUsers()
_ = context.resume().subscribeNext { json in
// response
}
RESTRequest is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RESTRequest"
muukii, [email protected]
RESTRequest is available under the MIT license. See the LICENSE file for more info.