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

Routing inside out

One of the most useful powers of object manager is that it has a so-called Router. It simplifies the generation of request URLs and helps developers maintain the path patterns. Once the Router is configured, it gives the ability to stop worrying about what endpoint to be used to make the next request, as all the object manager request methods will use the power of the Router. Using a centralized knowledge, a Router will know how to generate an appropriate URL for specific objects, request methods, or names. This greatly simplifies the amount of code you write and improves readability.

URLs will be generated by the Router using three types of routes:

  • Named routes: They are like a named symbolic link. This type of route is not related ...

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