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

Swift, how can I get response headers from RestKit?

I have a RestKit request as below. How can I get the auth token from the response headers? RKObjectManager.shared() .getObjectsAtPath(urlString, parameters: paramsDictionary, success: {(operation:…
markhorrocks
  • 1,199
  • 19
  • 82
  • 151
0
votes
1 answer

AFNetworking via RestKit - files missing

I've installed RestKit via CocoaPods this afternoon. I immediately had duplicate/redefinition errors because I already had manually imported AFNetworking before, and CocoaPods re-installed it. So I deleted the manually installed version, but now I…
el-flor
  • 1,466
  • 3
  • 18
  • 39
0
votes
1 answer

Restkit use object mapping without request

Is any way to use Restkit framework to map json (nsdictionary) to object without request. i have json and need to map it in object
Stalik
  • 1
0
votes
1 answer

Ignoring default value for missed elements instead of setting nil with RestKit

Im trying to send a response without certain fields, and RestKit still keeps setting the values to nil even after i have disabled this option using: infoMapping.assignsDefaultValueForMissingAttributes = NO; Full mapping code: RKEntityMapping…
nicwhitts
  • 190
  • 1
  • 3
  • 22
0
votes
1 answer

RestKit delete orphaned objects rule

Is it possible to set something like global rule for RKbjectManager to delete orphaned objects on successful mapping. I am currently using RKPathMatcher to delete orphans for specific path pattern, but it just seems like I am missing something.
Dejan Zuza
  • 359
  • 1
  • 6
  • 14
0
votes
1 answer

RestKit breaks build in archive mode - Xcode 8

I'm using Xcode 8.2.1 with CocoaPods 1.1.1. I've got a iOS application using RestKit 0.27, with Objective-C and Swift 3 code. Everything builds and works flawlessly in simulator and on the device, but the project won't compile when archiving it for…
user3002689
  • 51
  • 1
  • 1
  • 3
0
votes
1 answer

Restkit compatible version for Swift 2.3?

I have updated code to Swift 2.3. I have Restkit in it. Its version was 2.7.0, but it was giving errors use of undeclared identifier AFHTTPClient. I downgraded it to version 2.5.0 and then 2.4.0, and still it is giving me Compiler Errors. What is…
0
votes
1 answer

Getting RestKit to work with CococaPods 1.x

As we all know, when using RestKit in an iOS project utilizing CococaPods, we need to stick with the old CocoaPods 0.38 version. Otherwise RestKit won't link correctly: RKObjectMapping.h Not Found But now that CocoaPods is out of beta, we're forced…
Vaiden
  • 15,728
  • 7
  • 61
  • 91
0
votes
0 answers

Mapping json object with restkit

How mapping this json using restkit in swift? or objective-c? Only not use coredata. [{"one":"1","two":"2","three":"3","four":"4"}, {"one":"1","two":"2","three":"3","four":"4"}, {"one":"1","two":"2","three":"3","four":"4"}] I have this code, but…
Magic Max
  • 21
  • 3
0
votes
2 answers

Swift 3 RKObjectRequestOperation returns error unable to convert of type RKObjectRequestOperation

I'm trying to convert code from an existing app to swift 3 (Xcode 8.1) but am stuck on the code below giving error: cannot convert value of type (RKObjectRequestOperation!, RKMappingResult!) -> Void to expected argument type…
markhorrocks
  • 1,199
  • 19
  • 82
  • 151
0
votes
1 answer

Which cocoapods version to use on Mac 10.12, If Restkit is the dependency

I was using 0.37.2 pod version on previous mac version. Its not working on Sierra. If i upgrade the pods, Restkit creates an issue for File not found. Tried all the possible answers to make Restkit work on new pod version but no success. If someone…
coreDeviOS
  • 1,468
  • 2
  • 14
  • 27
0
votes
0 answers

Getting Segmentation Fault 11 due to RestKit on Xcode 7.3.1

Things Done Upgraded Mac to Sierra Upgraded pods to 1.1.1 from 0.37.2 Upgraded Restkit to 0.27.0 Things Tried Clearing DerivedData for Xcode Installing pods with xcode wordspace closed Restarting the Mac Adding User Header Search Path from…
coreDeviOS
  • 1,468
  • 2
  • 14
  • 27
0
votes
0 answers

iOS App crashes because of saveContextToPersistentStore:failedContext:error: in RKManagedObjectRequestOperation

My app crashes sometimes because of the RestKit, then I looked at the Crashlytics record. It shows the following errors: Crashed: com.apple.main-thread 0 libsystem_kernel.dylib 0x181c52014 __pthread_kill + 8 1 libsystem_pthread.dylib …
ybxsnail
  • 11
  • 1
0
votes
1 answer

RestKit - Multi-type subarray mapping

I'm using RestKit to map JSON objects in my iOS project. So far everything works fine, but I'm having trouble mapping a subarray of custom types. The JSON looks as such: { "Result" : "OK", "Total": "1","content": [ {"article": { …
nfls
  • 308
  • 2
  • 12
0
votes
0 answers

Mapping the response data in RestKit

I had used restkit in my project and i am trying to map the json data. Response data format is from json GET webservice is : [ { "Id":"XXXX", "detailId":"XXXX", "OriginalTitle":"XXXX" }, { …
ios developer
  • 3,363
  • 3
  • 51
  • 111
1 2 3
99
100