RestKit 0.2x is the latest major release of RestKit which includes several new features as well as significant changes since the previous 0.10.x. RestKit is a modern Objective-C framework for implementing RESTful web services clients on iOS and Mac OS X. It provides a powerful object mapping engine that seamlessly integrates with Core Data and a simple set of networking primitives for mapping HTTP requests and responses built on top of AFNetworking.
Questions tagged [restkit-0.20]
731 questions
8
votes
2 answers
RestKit 0.20 — What is the preferred way to create a new NSManagedObject?
I'm curious to know what the best way is to create a new NSManagedObject in RestKit 0.20? Currently my code looks something like this:
#pragma mark - navigation buttons
- (void)createButtonDidTouch
{
// create new album object
…

rosem
- 1,311
- 14
- 19
7
votes
1 answer
RESTKit POST Request Tutorial
I would like to know if there is a specific tutorial on how to do a POST request with RESTKit. I have looked at some tutorials but I haven't found any that say, "This is exactly how you do a POST request with RESTKit." Help is much appreciated.

comrod
- 343
- 7
- 17
7
votes
2 answers
Reloading CollectionView does not clear previously loaded cells
I have an iOS app that utilizes RestKit 0.20.1 to retrieve data from a Restful web service. I should also add the app uses CoreData. When the app is started the main screen is a collection view that is populated by a default search term. There is…

Ben
- 967
- 3
- 9
- 23
7
votes
1 answer
How to maintain JSON array order with Restkit managed objects
So i've got some JSON data and I want to maintain the order in which that data is received with restkit and managed objects and I havent been able to find the best way of doing this. When the order changes I need to make sure duplicates are not…

glued
- 2,579
- 1
- 25
- 40
7
votes
4 answers
Can not delete an entity from Core Data, using RestKit 0.20
The code below does not delete the entity. The "delete was successful" message appears on the console so the entity is found. All other operations I use succeed.
I am using RestKit 0.20.
NSManagedObjectContext *context = [RKManagedObjectStore…

zaph
- 111,848
- 21
- 189
- 228
7
votes
3 answers
RestKit Response Can't Be Deserialzed to Object
I'm having trouble mapping a response back to an object during a post request using RestKit.
Here's the code:
Request:
// mapping for the response. response is an object: {"response":"message","success":bool}
RKObjectMapping *responseMapping =…

threejeez
- 2,314
- 6
- 30
- 51
6
votes
1 answer
Map followers/following relationship with Restkit
In my core data project I have a User entity with a followers/following relationship which destination is also the User entity.
To get the info of a given user I call an endpoint with this structure: user/:id/
To fetch his followers/following users…

fdezjose
- 607
- 2
- 9
- 18
6
votes
1 answer
Trying to make a POST request with RestKit and map the response to Core Data
I am using RestKit framework and i want to make a POST HTTP request. The response is JSON. I want to put the JSON response automatically in the CoreData.
I don't know exactly what methods to call to make the request. I know that I should use…

Vlad Bogdan
- 700
- 1
- 8
- 25
6
votes
3 answers
JSON Response in postPath AFHTTPClient
I just switched to RestKit 0.2 and I am currently using the new "HttpClient" which is basically a AFHTTPClient. I have this line of code:
RKObjectManager* objectManager = [RKObjectManager sharedManager];
NSDictionary* params = [[NSDictionary alloc]…

abisson
- 4,365
- 9
- 46
- 68
5
votes
1 answer
How to automatically handle token refreshing with RestKit
I have a project which you can imagine is like the Facebook app and I'm having trouble grasping how to organize it with RestKit and handle tokens since I'm a RestKit beginner.
This is what I got so far:
Core Data NSManagedObject classes, for each…

Sasha_K
- 53
- 3
5
votes
3 answers
RestKit Request Value Transformer?
I am having some problems using an RKValueTransformer to serialize out an NSData image bytes to a base64 encoded string for a request. I was able to do the inverse for a response, after some help I received on stackoverflow.
Here is my code for…

Dan
- 468
- 1
- 4
- 19
5
votes
2 answers
Get JSON string for my object with RestKit
I want to create a json string to save in NSUserDefaults and then get it back from it.
I've already added RestKit to my project, to send and receive objects from the server.
However, now i want to flatten and save the data.
How do i use restkit to…

Lena Bru
- 13,521
- 11
- 61
- 126
5
votes
1 answer
Restkit mapping for array with no keypath
How can I create an object mapping for a JSON response like this, which is just an array of integers:
[
565195,
565309,
565261,
565515,
565292,
565281,
566346,
566347,
575241,
597230,
597231,
597227,
597228,
597229,
597232,
575248
…

ebi
- 4,862
- 6
- 29
- 40
5
votes
2 answers
Restkit Cache policy 20.x
Am very much disappointed in that restkit has removed the cache policy in their newer version.
How we can achieve the same in newer version? and is it possible can we use existing restkit classes for this Or any other way to implement the same ?

nik
- 2,289
- 6
- 37
- 60
5
votes
2 answers
RestKit - Request without object mapping
I am integrating RestKit with my project. I am using the version RestKit-0.20.2. Is there any way we can do the requests without object mapping in this version? I want to do the same thing the poster does here: Parsing JSON without Object Mapping in…

EmptyStack
- 51,274
- 23
- 147
- 178