Skip to content

Commit

Permalink
Update TUTORIAL.md
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Mar 27, 2014
1 parent e1f3719 commit 0df7b79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,11 @@ RKEntityMapping *entityMapping = [RKEntityMapping mappingForEntityForName:@"Gist
@"created_at": @"createdAt"}];

RKLogConfigureByName("RestKit/Network", RKLogLevelTrace);
RKResponseDescriptor *responseDescriptor = [RKResponseDescriptor responseDescriptorWithMapping:entityMapping method:RKRequestMethodGET pathPattern:@"/gists/public" keyPath:nil statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)];
RKResponseDescriptor *responseDescriptor = [RKResponseDescriptor responseDescriptorWithMapping:entityMapping
method:RKRequestMethodGET
pathPattern:@"/gists/public"
keyPath:nil
statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://api.github.com/gists/public"]];
RKManagedObjectRequestOperation *managedObjectRequestOperation = [[RKManagedObjectRequestOperation alloc] initWithRequest:request responseDescriptors:@[ responseDescriptor ]];
managedObjectRequestOperation.managedObjectContext = self.managedObjectContext;
Expand Down

0 comments on commit 0df7b79

Please sign in to comment.