Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RestKit Post
NSURL* baseURL = [NSURL URLWithString:@"https://api.example.com/"];
RKObjectManager* objectManager = [RKObjectManager objectManagerWithBaseURL:baseURL];
objectManager.acceptMIMEType = RKMIMETypeJSON;
objectManager.serializationMIMEType = RKMIMETypeJSON;
[objectManager.mappingProvider setMapping:[SMArticle mapping] forKeyPath:@"article"];
[objectManager.mappingProvider
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.