Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RestKit Post
NSURL* baseURL = [NSURL URLWithString:@""];
RKObjectManager* objectManager = [RKObjectManager objectManagerWithBaseURL:baseURL];
objectManager.acceptMIMEType = RKMIMETypeJSON;
objectManager.serializationMIMEType = RKMIMETypeJSON;
[objectManager.mappingProvider setMapping:[SMArticle mapping] forKeyPath:@"article"];
setSerializationMapping:[SMArticle serializationMapping] forClass:[SMArticle class]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.