SMReactiveRestKit brings all the power of RestKit into ReactiveCocoa world. It wraps RKObjectManager into a signal that can be subscribed to.
Base use:
RKObjectManager* objectManager;
[[objectManager rac_getPath:@"yourPath" parameters:@{@"param1":@"value1"} ]
subscribeNext:^(RKMappingResult* mapping) {
if (mapping) {
NSLog(@"%@",mapping);
}
}
];
You can also send a multipart dictionary to your server and map back the result, see examples and documentation for more detailed info.
To run the example project; clone the repo, and run pod install
from the Example directory first.
Contributions are REALLY welcome!
SMReactiveRestKit is available through CocoaPods, to install it simply add the following line to your Podfile
pod 'SMReactiveRestKit'
It will also automatically import pods for RestKit, ReactiveCocoa and libextobjc/EXTScope
Stefano Mondino, [email protected]
SMReactiveRestKit is available under the MIT license. See the LICENSE file for more info.