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

RestKit Mapping deallocated in background ?

I have the following structure in my app (iPad, iOS 5): UIView1 --> UIView2 (presented modal). I have a custom class dealing with a REST Service. This Class handles all the mapping, routing, etc. needed. There is an object in UIView1 using this…
MadMaxAPP
  • 1,035
  • 2
  • 16
  • 39
0
votes
1 answer

Implementing object mapping using RestKit in Objective-C

I am having trouble mapping a JSON response to objects using RestKit and Objective-C. I have already set up my RKObjectManager and mappings in my AppDelegate as suggested in my previous post by mja. I call my backend in my controller as per the…
Nick
  • 5,844
  • 11
  • 52
  • 98
0
votes
2 answers

Mapping a JSON response to an object using RestKit and Objective-C

I am relatively new to Objective-C and am attempting to use RestKit to receive a JSON response from a web service. I have successfully received the data back to my application, which looks like this viewing the…
Nick
  • 5,844
  • 11
  • 52
  • 98
0
votes
1 answer

RestKit GET request works just once

I'm using Restkit to communicate with Java Jersey REST server. I'm using a very simple method available on RKClient class, which is: [[RKClient sharedClient] get:@"/userStatus" delegate:self]; The created methods in mw class are: -…
Trein
  • 3,658
  • 27
  • 36
0
votes
2 answers

What will be if I call simultaneously [[RKClient sharedClient] get@"foo.xml" delegate:self] in two UIViewControllers?

What will be if I calls simultaneously [[RKClient sharedClient] get@"foo.xml" delegate:self] in two UIViewControllers? Do I have any problems? viewController_A { [[RKClient sharedClient] get:@"foo.xml" delegate:self]; } viewController_B { …
Voloda2
  • 12,359
  • 18
  • 80
  • 130
0
votes
1 answer

Adding Restkit to project repository

I am having issues adding the restkit framework to my project repository in xCode. I am using a Beanstalk repository and when I added the restKit project to my current project I cannot commit the RestKit project so others can get it that are working…
Mike D
  • 252
  • 1
  • 9
0
votes
1 answer

RestKit raises Authentication Error 3 times

I'm working with RestKit for iPad right now. I use a REST Service which needs HTTP Basic Authentication. If the User enters wrong credentials, i catch that and show a UIAlert telling the user where is the problem. Therefore i created a delegate…
MadMaxAPP
  • 1,035
  • 2
  • 16
  • 39
0
votes
2 answers

RestKit how to handle Authentication Failure

I'm unsingf RestKit in my iPad Project pulling some JSON Data from Server. The iOS app needs to authenticate via Basic HTTP Authentication. If i enter wrong credentials, i can see on the console (Simulator): W restkit.network:RKResponse.m:157…
MadMaxAPP
  • 1,035
  • 2
  • 16
  • 39
0
votes
1 answer

Xcode 4.2/Restkit cannot find interface declaration for 'NSManagedObject', did you mean 'NSManagedObjectModel'?

i've created a new xcode/ios project from scratch to check some issues with Restkit: Xcode 4.2, Restkit (https://github.com/RestKit/RestKit, Nov 09/2011) i've configured restkit with the help of these…
kky
  • 141
  • 2
  • 13
0
votes
3 answers

Create static library containing RestKit library

I have another problem in my use of RestKit Library. My goal is to create a specific library for my company, which can be used for all IOS development projects. For this I created a library in which I imported the library RestKIt. I followed the…
Beber
  • 1,513
  • 15
  • 25
0
votes
1 answer

Handling responses for difference POST in the same controller in RestKit

I want to write a method, in my method I need post two POST methods to my web service and get data json returned for every method. How can I process response for separate post? Ex: in my view, I have: [[RKObjectManager sharedManager]…
0
votes
1 answer

Unrecognized selector error with NSManagedObject getters/setters

I receive the following error. I can't figure out why, since latitude and longitude have @dynamic in the implementation file, and they are not reserved words (as far as I can tell). I am using RestKit with Core Data. 2011-11-06 18:12:23.428 Dark Sky…
James Skidmore
  • 49,340
  • 32
  • 108
  • 136
0
votes
1 answer

How to load objects using multiple RKObjectManagers

I was using https://github.com/RestKit/RestKit/wiki/Using-Multiple-Base-URLs-%28and-Multiple-Object-Managers%29 as a guide. I know it's possible to create multiple Object Managers and retain them in the appdelegate. What I dont understand is how do…
chourobin
  • 4,004
  • 4
  • 35
  • 48
0
votes
1 answer

RestKit. RKObjectManager and queing

I have 2 fairly simple question. I have 2 mapped requests sent i close succession to each other, called by MAIN thread. First request: [[RKObjectManager sharedManager] loadObjectsAtResourcePath:@"SomePathToServer"delegate:self] Second…
Thomas
  • 75
  • 7
0
votes
1 answer

Get Data size on RKRequest/RKRequestQueue?

I am using RestKit and it is great. I have few RKRequests gathered in one RKRequestQueue, and i wish to show the users the download progress. I can not find a away to get or generate the data size of the requests. I will appreciate any help. Thanks…
shannoga
  • 19,649
  • 20
  • 104
  • 169