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
3
votes
2 answers
RestKit Add Property Mapping and Relationship Mapping
Please guide me about following problem.
I have two entities with relationship as shown following image
I am using latest version of RestKit with iOS 7
Now in my appDelegate i am using following mapping for "List" Entity
NSDictionary…

Umair
- 400
- 5
- 19
3
votes
1 answer
Restkit 0.20 JSON Mapping along with additional offline data
So let's say I have a JSON object like such:
{
"userList" : [
{
"ID" : 1,
"firstName" : "John",
"lastName" : "Doe"
},
{
"ID" : 2,
"firstName" : "Jane",
"lastName" : "Doe"
}
]
}
I am able to…

Steven
- 974
- 6
- 18
3
votes
1 answer
Using RestKit to map my objects
I use JSON all the time in my apps
in my Android apps, i use Gson to deserialise JSON Objects that come from the server.
What i love about Gson, is that all i need to do is create an POJO class with the given attributes and they are mapped…

Lena Bru
- 13,521
- 11
- 61
- 126
3
votes
1 answer
RestKit mapping unnested relationships to owning object
I am trying to associate a GET response of photos with their owning User object in Core Data using RestKit (i.e. to be able to call user.photos after the request and have them automagically mapped). However, I don't understand how I can set this up…

ZeNewb
- 435
- 5
- 17
3
votes
2 answers
RESTKit - How to always replace all cached objects rather than updating?
I'd like to use RESTKit not in the default way, which as far as I understand, is to update the cached objects by looking at unique IDs and either adding objects to the cache when new IDs are found or purging objects from the cache when old IDs…

herrtim
- 2,697
- 1
- 26
- 36
3
votes
1 answer
RestKit : Not able to perform mapping using coredata
I'm using rest kit 0.20.3 and Xcode 5. Without core data I'm able to perform all rest kit operation, but when I've tried it with core data, I'm not even able to perform GET due to some problem. I can't figure it out. I'm new with core data. So pls…

Ashish Beuwria
- 975
- 6
- 13
- 17
3
votes
1 answer
RestKit 0.20 with Core Data: deleting objects
I'm using RestKit 0.20 to fetch JSON Requests into Core Data. For some reason I have to delete all objects in an entity (i.e. myEntity). I'm doing so with this code:
NSManagedObjectContext *moc =…

Ralf Hundewadt
- 1,078
- 1
- 13
- 25
3
votes
2 answers
RestKit Mapping a string array without key paths
I'm having a problem mapping a JSON array of strings with no key paths using RestKit 0.20.3. My classes are based on the the example in the RestKit wiki.
JSON:
"feature_list":{
"property":["test","test ","test","test"],
…

patrick-fitzgerald
- 2,561
- 3
- 35
- 49
3
votes
2 answers
Sending simple GET request with RestKit
I'm trying to send a simple request with RestKit, I'm interested only in getting the JSON,
here are my codes:
NSURL *endpoint = [NSURL URLWithString:@"https://www.ez-point.com/api/v1/"];
RKObjectManager* objectManager = [RKObjectManager…

Noor
- 19,638
- 38
- 136
- 254
3
votes
2 answers
Simple JSON login post on Restkit 0.20
Im following the steps of this old answer. The main issue is that RKObjectLoaderDelegate was removed and im cannot find any alternative that works for me. Im trying to connect to a server with mail/password sending a post request to a json. Also, i…

MidouCloud
- 403
- 1
- 7
- 20
3
votes
2 answers
Confusion setting mapping in RKObjectMapping - Rest
Please help in set mapping with RestKit, I am lost to find how to do this.
My JSON is like
{
"result":{
"success":"1",
"message":"You logged in successfully.",
"data":{
"user_id":"1",
"firstname":"somefirstname",
…

Janak Nirmal
- 22,706
- 18
- 63
- 99
3
votes
2 answers
How to update a NSFetchedResultsController?
I'm building an iOS app using RestKit and NSFetchedResultsController in my ViewControllers like explained in the following tutorial : http://www.alexedge.co.uk/blog/2013/03/08/introduction-restkit-0-20
I have a subclass of a UITableViewController…

Alexis
- 16,629
- 17
- 62
- 107
3
votes
1 answer
Object request failed: Underlying HTTP request operation failed with error: Error Domain=NSURLErrorDomain Code=-1012 "
I am using restkit and am trying to hit https site from my simulator.
iPad simulator taking the system proxy while sending the request i guess and proxy blocked these request .
Same code works fine when i run in iPad device.
Any one please help…

Suresh
- 1,199
- 2
- 12
- 36
3
votes
1 answer
RestKit pathpatterns including IDs
So the problem is that when I'm trying to load entity from here I'm not getting things to work. My Pathpatterns seems to be wrong.
Here's my Mapping and Descriptor:
RKEntityMapping *statsMapping = [RKEntityMapping mappingForEntityForName:@"Stat"…

Vivienne Fosh
- 1,751
- 17
- 24
3
votes
1 answer
RestKit 0.20.2 Routing and mapping
I have the following JSON and routing mapping for it also follows.
Single Item JSON
{
"quantity" : 0,
"id" : 1,
"version" : 0,
"sku" : "sku1",
"title" : "title1",
}
and all Items JSON is as follows:-
[
{
"quantity" : 2,
"id" : 1,
…

foki
- 65
- 1
- 5