测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布日期上次发布 | 2016年7月 |
SPM支持SPM | ✗ |
依赖 | |
BrickRequest | ~> 0.4.0 |
SwiftyJSON | ~> 2.3.1 |
RxSwift | ~> 2.0 |
BrickRequest的示例使用。
RESTRequest的依赖。
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可通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile中:
pod "RESTRequest"
muukii,[email protected]
RESTRequest采用MIT许可证。有关更多信息,请参阅LICENSE文件。