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
0
votes
1 answer

key value coding array issue

I have the following class: @interface Topics : NSObject { NSNumber * _until_id; NSArray * _topics; } @property (nonatomic, retain) NSNumber * until_id; @property (nonatomic, retain) NSArray *…
adit
  • 32,574
  • 72
  • 229
  • 373
0
votes
1 answer

cocos2d and restkit crash on request

trying to get used to restkit at the moment and im having an issue getting it to work within a cocos2d template project. All my restkit code works fine if i create a standard viewcontroller project without any cocos2d but when i try add it to my…
glogic
  • 4,042
  • 3
  • 28
  • 44
0
votes
1 answer

Iphone Restkit RKObjectLoader error

I have created an app, for Iphone, that uses Three20 and RestKit framework. The app works almost perfectly, but there is a problem in the following situation: I have a view that calls another using the method TTOpenURL(@"tt://reports"); In my…
Andre
  • 1
  • 1
0
votes
1 answer

Crashes, possibly related to Restkit

I'm a Project Manager trying to help out with my developers; We had a build that was ready for submission; crash free and testing was done on an iPad. The following day when we began testing it on iPod and iPhone 3G, we noticed a boatload of…
0
votes
0 answers

Heroku app is suddenly giving a 503 via my API call

I have my API setup for my mobile app. I haven't changed anything on my ROR server running on Heroku and in my App I haven't changed the API call. I am using RestKit which which updated, but literally all but this ONE api call is working just as…
jdog
  • 10,351
  • 29
  • 90
  • 165
0
votes
1 answer

Error Domain=org.restkit.RestKit.ErrorDomain Code=-1011 "Expected status code in (200), got 504" - Only in real Device

RKObjectManager *manager = [RKObjectManager managerWithBaseURL:[NSURL URLWithString:BASE_URL]]; PPPSynchronization *synchObj = [[PPPSynchronization alloc] init]; [synchObj configureRestKitWithManager:manager…
0
votes
0 answers

RestKit: Multiple response descriptors for same path patter and method

I have a GET web service which I am calling in two different ways, once with parameters to the web service and once without parameters. Although the response structure is the same in both cases the response isn't. I want to map the result in…
Tejas K
  • 682
  • 11
  • 28
0
votes
1 answer

null values for mapped attributes using RestKit for iOS and Swift

I am trying to execute POST request with JSON data to my API: My class implementation: class Person: NSObject { var theId: String? var countrycode: Int? var language: String? } Mapping and descriptor in the app delegate class: let…
malhobayyeb
  • 2,725
  • 11
  • 57
  • 91
0
votes
1 answer

Xcode10.1 RestKit error _$s7RestKit11DynamicKeysVN

I am coming from a different coding language/tools and I am trying to learn xcode/swift. Sorry if this is a simple question. I was following some youtube video on making an app. I added a few pods, including one called RestKit to my project. When I…
Shin
  • 13
  • 1
  • 4
0
votes
1 answer

RestKit Collection - The Proper Key Path?

I have the following JSON coming from my server... {"Devices": [ { "uuid": "d9084134-d5f7-43a3-9613-7faa769a822a", "label": "", "location": "a13d45f4-5ce0-48e3-bc3f-4076bb007037", "capability": 0 }, { "uuid":…
Etep
  • 533
  • 7
  • 20
0
votes
1 answer

Adding RestKit framework into Cathrag

why the RestKit framework is not adding in the cathrage for IOS, I have followed the exact instructions from https://github.com/watson-developer-cloud/swift-sdk/ repo but not able to solve it. Kindly help me.
0
votes
0 answers

"filteredArrayUsingPredicate" Taking time to respond

This is my code in which return [arrayToFilter filteredArrayUsingPredicate:dupObjPredicate]; is taking time to respond. + (NSArray *)removeDuplicatesInArray:(NSArray*)arrayToFilter{ NSMutableSet *dupList = [NSMutableSet set]; NSPredicate…
0
votes
0 answers

Restkit doesn't load data on second request

I'm developing an ios app using restkit and core data to query json from a server. I noticed that the first time I open the app, restkit works properly, but the second time, it refuses to load any data. When I enabled the restkit trace log, I saw…
Bill Yan
  • 3,369
  • 4
  • 27
  • 42
0
votes
1 answer

How to use RACObserve in swift

this new existing project is using Objective-C Code with RACObserve(Reactive cocoa ) to read api responses. I want to convert obj-c to swift . Current Obj-c Implementation is : @interface ObjCTableViewCell : UITableViewCell @property (nonatomic,…
sulabh
  • 249
  • 5
  • 22
0
votes
1 answer

iOS/RestKit - request timed out

My iOS app use RestKit framework for implementing RESTful web services client. Sometimes, I have a problem when I call my server from my application. The request is not sent and it fails at the end of the expiration with this error: Error…
A. Jeanne
  • 41
  • 5