Questions tagged [restkit-0.24.x]

12 questions
2
votes
1 answer

How to map a local JSON string into an object using RestKit 0.24 with RKObjectMapping?

I am trying to map a JSON NSString into an object using RestKit 0.24.0 where I have a RKObjectMapping as well as the corresponding dictionary. Most of the solutions online refer to RestKit 0.22 and below. Some of the solutions on SO result into app…
rahulg
  • 2,183
  • 3
  • 33
  • 47
1
vote
2 answers

RestKit how to map an array inside an array

Here's the response: { "status": true, "statuscode": 200, "result": [ { "name": "ABC", "date": "2015-01-30", "documents": [ { "id": 1, "name": "doc1", "status": "complete", …
Axel
  • 685
  • 5
  • 14
1
vote
0 answers

Restkit update from 0.20.0 to 0.24.0 addFetchRequestBlock missing

I just updated my restkit cocoapod from 0.20.0 to 0.24.0. Now I have the following function -(void)fetchCategoriesOnCompletion:(myCompletion) compblock{ Mapper *mapper = [Mapper new]; RKManagedObjectStore *store = [[ASLDataModel…
Steaphann
  • 2,797
  • 6
  • 50
  • 109
0
votes
1 answer

Error Domain=org.restkit.RestKit.ErrorDomain Code=-1011 "Expected status code in (200), got 504" - Only in real Device

RKObjectManager *manager = [RKObjectManager managerWithBaseURL:[NSURL URLWithString:BASE_URL]]; PPPSynchronization *synchObj = [[PPPSynchronization alloc] init]; [synchObj configureRestKitWithManager:manager…
0
votes
1 answer

How to change encoding in Restkit for IOS from Utf8 to Wincp1251

I get response from server in wincp1251 and restkit returns nil to my mapped object strings. I know restKit have a property defaultHTTPEncoding in RKClient(https://github.com/RestKit/RestKit/commit/0ead8a922219ec42ec6dae6ebe59139a1fd589ae), how can…
0
votes
2 answers

Can't map received object after a POST

After doing a POST request to the server, the returned object is un-mappable, although I've created all the necessary infrastructure for it. To simplify my problem, I've created a "POST object" class, and another one for the response object; (below…
Priest
  • 242
  • 4
  • 11
0
votes
1 answer

server is not receiving body object from webservice call of restkit

I want to send put request using restkit putobject and receive the response as 200 and string from the server, but server is giving me 400 and saying not receiving body. Request is request: https://myserver.com/api/v1/f1//update body =…
jatin
  • 181
  • 7
0
votes
1 answer

Restkit: Stubs for foreign key relationships

I am having serious trouble understanding how to map the user and team objects given the two REST API endpoints below. I've been reading all I could find on SO, the closest QA was this one RestKit: Creating stubs for foreign key relationships, but I…
0
votes
1 answer

Restkit, Swift, Core data one to many

I just can't figure out this error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: key cannot be nil Here is some sample JSON [{"storeId":"22","storeName":"Jewel Osco","storeAddress1":"890 N…
jimijon
  • 2,046
  • 1
  • 20
  • 39
0
votes
1 answer

Conflicting SharedInstance during method call with different instance (RestKit)

I am using Restkit framework for RESTFUL web service. My Resoucemanager i,e TaskManager and TaskDashboardCountManager are conflicting . When I call method [[TaskDashboardCountManager sharedManager] loadTaskCount:^(NSDictionary *task) {}]; I am…
0
votes
1 answer

Restkit [operation waitUntilFinished] not working

I'm using reskit inside my cocoapods library I have an example library where I reference my own library to make the call, so when I make the call from IOS example code I get empty result. This is my code. RKObjectRequestOperation *operation =…
Cesar Oyarzun
  • 169
  • 2
  • 8
0
votes
0 answers

RestKit: Can pathPattern have multiple IDs (Object Attributes + Object Relationship Attributes)

I have nested resource endpoints like /users/:userID/profiles/:profileID from my backend. In my data model i have the same relationships setup as following: User -- has-many -- profiles. So is there any way i could setup my router to fetch object…
Saad Masood
  • 11,036
  • 9
  • 32
  • 40