O'Reilly logo

RestKit for iOS by Taras Kalapun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

RESTful object manipulation

The power of RestKit comes when you want to manipulate remote objects. For the RestKit, all you need is to configure a response object mapping, set the request paths, and fire the appropriate method with the object.

In a RESTful web service, the CRUD operations are tightly related to the HTTP methods. Create, read, update, and delete operations map to the HTTP methods GET, PUT, POST, and DELETE respectively.

Note

By the way, the HTTP 1.1 standard defines eight methods (or verbs): HEAD, GET, POST, PUT, DELETE, TRACE, OPTIONS, and CONNECT.

We discussed the Read operations in the previous sections. So in this one, we'll start by talking about the Create operation.

For example, let's make a code to create the new collection. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required