Note that there are some explanatory texts on larger screens.

plurals
  1. PORestKit 0.20.0 getobject
    primarykey
    data
    text
    <p>I am new to restkit.I have integrated restkit 0.20.0-pre6 successfully by following instructions from github. Then I have build my project in console, I got the following </p> <p>restkit:RKLog.m:34 RestKit logging initialized...</p> <p>after that I would like to get data at a path </p> <p>Initially there is an activation screen .so I would like to send activation code to it and if it is correct, I would like to get corresponding details .</p> <pre><code>NSURL *urll=[NSURL URLWithString:@"http://url/FirstRest/rest/application/Activate"]; AFHTTPClient* client = [[AFHTTPClient alloc] initWithBaseURL:urll]; RKObjectManager *manager = [[RKObjectManager alloc] initWithHTTPClient:client]; [RKObjectManager setSharedManager:manager]; Article *article = [Article new]; article.activationCode = @"S1234"; [manager.router.routeSet addRoute:[RKRoute routeWithClass:[Article class] pathPattern:@"/FirstRest/rest/application/Activate/:activationCode" method:RKRequestMethodGET]]; [[RKObjectManager sharedManager] getObject:article path:nil parameters:nil success:^(RKObjectRequestOperation *operation, RKMappingResult *result) { // Request NSLog(@"result is ************* %@",result); } failure:^(RKObjectRequestOperation *operation, NSError *error) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:[error localizedDescription] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; }]; </code></pre> <p>`</p> <p>in my console I'm getting </p> <pre><code> I restkit.network:RKHTTPRequestOperation.m:179 GET 'http://url/FirstRest/rest/application/Activate/S1234' (200 OK) [1.4744 s] </code></pre> <p>2013-01-28 14:07:59.284 Polls[985:15103] E restkit.network:RKResponseMapperOperation.m:240 Failed to parse response data: Loaded an unprocessable response (200) with content type 'application/json'</p> <p>I couldn't find out what does it really means and how to overcome this</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload