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
0 answers
RESTKIT .20.1 nested array with relationship mapping assistance
I am having trouble with RESTKIT and mapping the following JSON via RESTKit .20.1. I have a nested JSON array and I am trying to map via the RelationshipMapper. I am able to map the 5 chart_data object successfully but the related nested…

Greg Svitak
- 485
- 1
- 6
- 19
3
votes
2 answers
RestKit Mapping with unsuccessful status codes
I am trying to map a 403 forbidden respone to a custom object. I registered a mapping with the response code as follows:
RKResponseDescriptor* tacResponseDescriptor = [RKResponseDescriptor responseDescriptorWithMapping:termsAndConditionMapping…

Michael Ochs
- 2,846
- 3
- 27
- 33
3
votes
1 answer
Traverse upwards in JSON when mapping using RestKit 0.20
I have the following JSON structure:
{
"category": "MyCategory"
"objects": [
{ "id": 1, "name": "A" },
{ "id": 2, "name": "B" },
{ "id": 3, "name": "C" }
]
}
I'm mapping each object to a separate Core Data entity like…

thejaz
- 2,763
- 2
- 26
- 40
3
votes
2 answers
Multiple View Controllers with Core Data and Restkit
I reckon I'm probably missing something obvious here, as this has got to be a pretty common use case for RestKit.
I want to have two view controllers, each just glueing an NSFetchedResultsController to a UITableView, and let's say that the first one…

Alyssa Ross
- 2,169
- 16
- 26
3
votes
1 answer
How do I implement dynamic mapping (RKDynamicMapping) with this JSON?
My backend returns this kind of JSON files:
{
"response": {
"message": "Test"
},
"responseCode": 205
}
Depending on responseCode value, what is inside response is different.
I know I have to use something like RKDynamicMapping,…

Ricardo
- 2,831
- 4
- 29
- 42
3
votes
1 answer
Core Data initialization using RestKit 0.20
I'm trying to update my existing app that was using Restkit 0.1 to 0.20 but I'm facing some problems when setting up the Core Data Stack as it runs into an exception.
I've got the following code on my AppDelegate:
/*
Complete Core Data…

Manu Matute
- 373
- 1
- 3
- 12
3
votes
3 answers
RestKit 0.2 Connect to Invalid HTTPS Security Certificate
In RestKit 0.2, how do I allow my app to connect to a server with an invalid https security certificate? From the AFNetworking documentation it looks like all I have to do is #define _AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_ . However, I've…

YoungDinosaur
- 1,550
- 17
- 22
2
votes
1 answer
How to map a different JSON response for GET request with optional URL parameters
I need to perform a GET request to a url, with optional URL parameters.
The basic URL looks something like http://host/user/explore, with the option of querying http://host/user/explore?who=VALUE&category=VALUE&service=VALUE for more accurate…

Priest
- 242
- 4
- 11
2
votes
2 answers
restkit, how to access object in response without object mapping
How can I access the original response json data without using object mapping. I have the followingresponse data. it contains a nextSyncToken which used to execute the query and a collection of items (within the items session).
I created a object…

Joe SHI
- 1,734
- 4
- 20
- 39
2
votes
1 answer
RestKit mapping nested properties fails
I've got the following JSON payload:
"user": {
"id": 1,
"username": "bla",
"first_name": "bla",
"self": {
"info": "MyInfo",
"website": "MyWebsite"
},
//... some more properties doesn't matter
}
I try to map that nested object…

dibi
- 3,257
- 4
- 24
- 31
2
votes
2 answers
Mapping relationships from JSON array with Restkit
I will try to be as descriptive as possible with this issue...
Scenario
Let's say i have a NSManagedObject 'User'
@class Premise;
@interface User : NSManagedObject
@property (nonatomic, retain) NSNumber * identifier;
@property (nonatomic, retain)…

tmagalhaes
- 944
- 9
- 12
2
votes
1 answer
ios RestKit post attached UIImage
I am trying to post an image to my server using RestKit and map response from server. But server always back that file I am sending is nil.
Could anyone help me with that issue?
NSData *data = UIImageJPEGRepresentation(imageData,…

Anton
- 3,102
- 2
- 28
- 47
2
votes
1 answer
RESTKIT mapping JSON with text/html content type
Here is my problem. I have a server that gives me a response in JSON text. However the header content type is 'text/html' and I can't change it.
I need to proccess this response in my IOS app. I am using RESTKIT to make the request and handle the…

Terrick Mansur
- 147
- 1
- 10
2
votes
1 answer
Property data types while using Realm.io and RestKit together
I am trying to use RestKit with Realm.io and am having an issue with property data types. I have a property that is an integer. RestKit seems to only want to map to a NSNumber type (https://github.com/RestKit/RestKit/wiki/Object-mapping), while a…

Mike Wrather
- 146
- 7
2
votes
1 answer
RestKit POSTing multipartFormRequest with dictionary parameters adds back slashes in data
I am having problem of POSTing data with RestKit. It is actually syncing of Array DBMeetings objects (created offline) when network is available. DBMeetings objects can have Photo attachments, so I am using following method by…

Khawar
- 9,151
- 9
- 46
- 67