Reputation: 468
I am using RestKit .22.0 with Core Data integration, both of which I'm pretty unfamiliar with. I followed the RKGist tutorial and was able to learn how to get objects from a REST endpoint, set up object mappings, add routes, and see the data from the web service correctly insert into the Core Data sqlite database.
Now I'm starting to work on persisting objects to the web service, but can't find any information on how best to do this. It seems like there are multiple ways to skin a cat with RestKit, so I wanted to see what the best practices are for POST/PUTing data.
[[RKObjectManager sharedManager] postObject:path:parameters:success:failure:]
? Or is there some RestKit method that performs both of these operations at once?[[RKObjectManager sharedManager] postObject:path:parameters:success:failure:]
method do this for you?Thanks!
Upvotes: 2
Views: 181
Reputation: 119021
Upvotes: 2