RestKit-PromiseKit 0.4.1

RestKit-PromiseKit 0.4.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2015

Maintained by Chris McKnight.



 
Depends on:
PromiseKit/Promise~> 1.5
RestKit~> 0.20
 

Wrapper for the RKObjectManager class to return a PromiseKit promise.

Promises clean up the structure of code and provide better data flow and error handling especially when using asynchronous methods.

Requirements

Supported Platforms

  • iOS 6.0+
  • OS X 10.7+

Installation

Manual

  • Drop RKObjectManager+PromiseKit.h, RKObjectManager+PromiseKit.m and RestKit-PromiseKit.h into an XCode project with RestKit and set the appropriate targets.

Usage

Import the category

  • Manual install

    #import "RestKit-PromiseKit.h"
  • Cocoapods install

    #import <RestKit-PromiseKit/RestKit-PromiseKit.h>

Call a typical HTTP method on an instance of RKObjectManager and use the resulting promise.

  [[RKObjectManager sharedManager] getObjectsAtPath:@"/articles" parameters:nil];

License

RestKit-PromiseKit is licensed under the MIT license. Please see the license for more information.

TODO

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request