// Routes for Blogs
[objectManager.router.routeSet addRoute:[RKRoute routeWithClass:[Blogs class] pathPattern:@"/blogs/:articleID" method:RKRequestMethodGET]];
[objectManager.router.routeSet addRoute:[RKRoute routeWithClass:[Blogs class] pathPattern:@"/blogs/:articleID" method:RKRequestMethodPUT]];
[objectManager.router.routeSet addRoute:[RKRoute routeWithClass:[Blogs class] pathPattern:@"/blogs/:articleID" method:RKRequestMethodDELETE]];
[objectManager.router.routeSet addRoute:[RKRoute routeWithClass:[Blogs class] pathPattern:@"/blogs" method:RKRequestMethodPOST]];
RKResponseDescriptor *responseDescriptor = [RKResponseDescriptor responseDescriptorWithMapping:blogsMapping
pathPattern:@"/blogs/:blogID"
keyPath:nil
User *joeBlow = [User object]
[joeBlow setUsername:@"joeblow"];
I have to say the .20 changes are not intuitive at all. The old .9 version were very user friendly. So frustrated!
User *joeBlow = [NSEntityDescription
insertNewObjectForEntityForName:@"User"
inManagedObjectContext:[objectManager.managedObjectStore mainQueueManagedObjectContext] ];
But now getting all kinds of errors
Error Domain=org.restkit.RestKit.ErrorDomain Code=1001 "Unable to find any mappings for the given content" UserInfo=0x9553420 {DetailedErrors=(),
NSLocalizedDescription=Unable to find any mappings for the given content, keyPath=null}
Are there any examples of using .20 with RKRouter? It would probably cut down on the number of posts to the forum.
--
You received this message because you are subscribed to the Google Groups "RestKit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to restkit+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.