Questions tagged [restkit]

RestKit is an Objective-C framework for iOS that aims to make interacting with RESTful web services simple, fast and fun. It combines a clean, simple HTTP request/response API with a powerful object mapping system that reduces the amount of code you need to write to get stuff done.

A simple, high level HTTP request / response system.

RestKit ships with an HTTP client built on top of NSURLConnection and provides a library of helpful methods for inspecting MIME types and status codes. Submitting form data is as simple as providing a dictionary of parameters and a native params object is included for easily creating multi-part submissions.

Core Data support.

Building on top of the object mapping layer, RestKit provides integration with Apple’s Core Data framework. This support allows RestKit to persist remotely loaded objects directly back into a local store, either as a fast local cache or a primary data store that is periodically synced with the cloud. RestKit can populate Core Data associations for you, allowing natural property based traversal of your data model. It also provides a nice API on top of the Core Data primitives that simplifies configuration and querying use cases.

Database Seeding.

When the Core Data object store is used, you can seed a database from a collection of data files. This lets you submit your apps to the App Store with a database in the app bundle that is ready for immediate use.

Framework level support for switching servers & environments (development/production/staging).

RestKit uses a base URL and resource paths rather than full URL’s to allow you to switch target servers quickly. Interpolating URL strings and constructing NSURL objects is a thing of the past.

An object mapping system.

RestKit provides a modeling layer for mapping processed data payloads into native Cocoa objects declaratively. This lets the application programmer stop worrying about parsing and simply ask the framework to asynchronously fetch a remote resource and call the delegate with the results. Object mapping is implemented using key-value coding, allowing for quick traversal of the parsed object graph. Reflection is used on the property types to allow for mapping from remote dates encoded as a string back to NSDate objects.

Pluggable parsing layer.

RestKit currently supports JSON via the SBJSON and YAJL parsers. Parsing is implemented behind a simple interface to allow additional data formats to be handled transparently.

References

2699 questions
64
votes
25 answers

No such module 'RestKit' with cocoapods and swift

I am having this problem with a brand new project. This problem happens with both RestKit and Facebook SDK. Strangely SwiftyJSON works just fine. I create a brand new swift project and a Podfile with: source…
Joped
  • 1,108
  • 1
  • 11
  • 12
49
votes
1 answer

Best way to use RestKit in an iPhone Application

I am writing an iPhone application and I have finally decided to use RestKit as the framework for connecting to REST Services. The way I am thinking of building is to have the Controllers in my application be completely agnostic to RestKit. For eg.…
Vidyanand
  • 967
  • 8
  • 14
48
votes
4 answers

RKObjectMapping.h Not Found

I "pod update", and my RestKit version now is 0.25.0, my RKValueTransformers is 1.1.2, and an error appeared "RKObjectMapping.h" not found. What did RestKit change in the new version, that I check on the its github cannot find anything. The…
chipbk10
  • 5,783
  • 12
  • 49
  • 85
32
votes
2 answers

Use a fork of Restkit on github via CocoaPods?

restkit is using in a different way the oauth2 protocol, I need to change the code to be able to use it in my way: From: // OAuth 2 valid request if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) { NSString *authorizationString =…
Nicolas Henin
  • 3,244
  • 2
  • 21
  • 42
32
votes
2 answers

iPhone RestKit how to enable RKLogDebug?

I'm trying to debug RestKit object mapping and noticed that there are calls to RKLogDebug throughout the code, but it appears that that macro is undefined somewhere. How can I enable it?
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
29
votes
6 answers

Property 'managedObjectStore' not found on object of type 'RKObjectManager'

I've been attempting to work with version 0.20.3 of the Restkit library. Recently an error has occurred that I cannot figure out how to solve. It is the following: Property 'managedObjectStore' not found on object of type 'RKObjectManager *' It…
Cale Spratt
  • 291
  • 3
  • 4
25
votes
1 answer

Unknown type name 'AFNetworkReachabilityStatus', RestKit suddenly stop working

My application stops compiling today, and it has been working for a couple of month with RestKit. I did not change any code. What I did is only run the pod install command again. I have tried the method. This issue is already 3 years ago. I am…
Joe SHI
  • 1,734
  • 4
  • 20
  • 39
25
votes
5 answers

Restkit, Stop Logging?

I am wondering.. Restkit keeps showing reachability information, request information as i use it. Will this automatically stop in production version or do i need to do something to stop them from displaying like setting RKLog level? thanks
Veeru
  • 4,936
  • 2
  • 43
  • 61
24
votes
2 answers

How can I see the communication of the RestKit network (JSON string)?

I wish to see the JSON input/output of the iPhone. How can I do that? Do I need to set use NSLog() (and where)? Or, set the RestKit logging level (to what)?
Tomer Even
  • 4,820
  • 2
  • 30
  • 36
24
votes
3 answers

Is there any Restkit 2.0 Tutorial like raywenderlich?

i am learning restkit api. I found a very good Raywenderlich restkit tutorial. But it is integrated with Restkit 0.10.1. And i want to learn a RestKit-0.20.0-pre6. If any one has good tutorial like this in iOS. Please share. Thanks in advance.
Rajesh Maurya
  • 3,026
  • 4
  • 19
  • 37
24
votes
14 answers

RestKit/RestKit.h file not found error - version 0.10.0

I am losing my hair in my attempts to get RestKit to build and work. I get the dreaded "Lexical or Preprocessor issue: RestKit/RestKit.h file not found" message. I use Xcode 4.2 & my project is for iOS. Earlier, I had debug mode working perfectly…
Ravi
  • 3,719
  • 6
  • 28
  • 40
23
votes
2 answers

RestKit loadObjectsAtResourcePath:delegate works once, but then never again

I'm fairly new to Objective-C and XCode, but even newer to RestKit, though been programming in Java for 12 years. I have an IOS app connected to RestKit and an action to load from a rest server works only the first time, if I go back in the…
tallpsmith
  • 287
  • 2
  • 8
23
votes
1 answer

Rails shows "WARNING: Can't verify CSRF token authenticity" from a RestKit POST

When I try to POST from RestKit, there is a warning in Rails console: Started POST "/friends" for 127.0.0.1 at 2012-04-16 09:58:10 +0800 Processing by FriendsController#create as */* Parameters: {"friend"=>{"myself_id"=>"m001",…
ohho
  • 50,879
  • 75
  • 256
  • 383
20
votes
1 answer

Differences between RestKit and AFIncrementalStore

In my iOS app, I am trying to get and post data from a (RESTful) server. I think for that both RestKit and AFIncrementalStore are good candidates. However I also need to be able to save data offline and push it to the server when the app is…
Devang
  • 1,531
  • 3
  • 22
  • 38
20
votes
3 answers

iOS app with Django

So we currently have a website that was created using Django. Now, we would like to create a native iOS app that uses the same backend, so we don't have to re-code the whole thing. From my understanding, there are two alternative routes: 1) Call…
abisson
  • 4,365
  • 9
  • 46
  • 68
1
2 3
99 100