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

Rails 3.1 & RestKit 0.9.3 - mapping of references

I have the following scenario: I have a rails web portal (Rails 3.1) and I use RestKit 0.9.3 (the newest version) to connect the the portal from an iOS device. I want to map the data structure from the server to the core data model on the iOS…
LetzFlow
  • 431
  • 8
  • 17
0
votes
1 answer

RestKit -Problems with object mapping of "advanced data object"?

Im having a problem with the mapping of the: latest_update field in the JSON data. Recieving this JSON data from my webservice: {"Places":[ {"place_ID": "7cceedda-ed3a-11e0-a1a8-858e3974979a", "timestamp": "2011-10-02 23:24:42" },…
Thomas
  • 75
  • 7
0
votes
1 answer

how to sync an id of an object with a backend via restKit?

I have a Topic object which i created on the client-side iPhone. When I post it to the server the topicID attribute was set to null. now I wish to update that topic but I don't know the id of that topic. Does anyone knows how to solve it? I've tried…
Tomer Even
  • 4,820
  • 2
  • 30
  • 36
0
votes
1 answer

Parse JSON result into NSString or similar "primitive" datatypes in RestKit

I'm a beginner to RestKit and I'm finding difficult to get the hang of it, beats using standard cocoa to do webservice response parsing, but still feels lightyears behind .net or java... Anyhow, to the point. I have a WCF webservice which returns…
SoManyGoblins
  • 5,605
  • 8
  • 45
  • 65
0
votes
2 answers

JSON format inconsistency

There are two JSON format that i came across: Format A: [ {"topic": {"category":"testCategory","created_at":"2011-09-27T05:41:42Z", "size":5,"title":"testTitle2", "id":1, "posts":[ …
Tomer Even
  • 4,820
  • 2
  • 30
  • 36
0
votes
0 answers

How to resolve the interference of the python tkinter application by global mouse events

I used the tkinter module of python and wrote a GUI program containing the Menu control. But at runtime, I found that when I clicked the menu, it displayed, but disappeared at once, unless I kept holding down the left-button. btw, the response…
Brant
  • 1
  • 1
0
votes
1 answer

RestKit: Property 'mapper' not found on object of type 'RKObjectManager *'

Using the new Xcode and RestKit I am facing a problem with the mapper. The error is: Property 'mapper' not found on object of type 'RKObjectManager *' // Initialize RestKit NSString* baseUrl = @"http:////172.13.12.17:3000"; RKObjectManager*…
VanessaMartinez
  • 139
  • 1
  • 8
0
votes
1 answer

iOS - RestKit and sending a post request to the server?

When I try to post an object using RestKit I get the following error. "Cannot send a request that is loading or loaded without resetting it first." What does it mean? How can I reset a request?
aryaxt
  • 76,198
  • 92
  • 293
  • 442
0
votes
1 answer

RestKit Login problem

Can anyone give me a hint why I can not login into my service? I dont get an response to my delegate. The service is working. If I call the url in my browser I get a login (Browser receives a cookie) and then I can call request on my service: Here…
James
  • 1
  • 1
0
votes
1 answer

Nested objects mapping in RestKit

I have following structure: Get Handbook: //request { "type": "handbook", "hash": "" } //response { "body": { "songs": [ { "id": 1, "length": 1231, "name": "song 1" …
0
votes
1 answer

UITableview datasource methods and retrieving json as the datasource

I'm using the RestKit library to load json from my REST services, and then mapping the data to an object. If I apply that retrieved object as the datasource, the tableview datasource methods run before the json is downloaded, which leaves [list…
Adam
  • 8,849
  • 16
  • 67
  • 131
0
votes
1 answer

restkit and three20

I couldn't find a lot of good documentation on three20, so my question is what if any is the overlap between restkit and three20 in the url cache and request methods. Does it make sense to use three20's TTURLRequest with RestKit? Are they…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
1 answer

ASIHttpRequest call Restful web service?

Can ASIHttpRequest call Restful web service ? I knew that Restkit is good at it. If no,any easy way to convert ? Can we say that ASIHttpRequest is good at calling soap based web service ? Thanks for your comments !
Forrest
  • 122,703
  • 20
  • 73
  • 107
0
votes
1 answer

HTTP/1.1 200 213 on Tomcat while uploading jpeg file using RESTKit

All, I am using RestKit for iOS to upload a JPEG file to my Java web service. I referred to this tutorial for developing file upload web service and it works perfectly fine when i use it through my web browser. However, when i try to upload a…
user598789
  • 329
  • 1
  • 2
  • 17
0
votes
1 answer

delegate property assign problem, RestKit RKRequest

property "assign" and "retain" for delegate I know use 'assign' is better, but I have in case that use retain is better. I call web service by making RKRequest object. RKRequest *request = [[RKClient sharedClient] get:urlString…
moon6pence
  • 712
  • 9
  • 24