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

Data modeling

Let's discuss our basic example. We were loading data from the Status API endpoint, http://status.twilio.com/api/v1/services. If we visit this URL with our web browser, we see a JSON output similar to the following code:

{ "services": [ { "current-event": { "informational": false, "message": "All systems operational.", "sid": "ag5tb25nb2hxLXN0YXR1c3INCxIFRXZlbnQYi-gUDA", "status": { "description": "The service is up", "id": "up", "image": "http:\/\/status.mongohq.com\/images\/status\/tick-circle.png", "level": "NORMAL", "name": "Up", "url": "http:\/\/status.mongohq.com\/api\/v1\/statuses\/up" }, "timestamp": "Wed, 13 Mar 2013 18:10:21 GMT", "url": "http:\/\/status.mongohq.com\/api\/v1\/services\/aaron\/events\/ag5tb25nb2hxLXN0YXR1c3INCxIFRXZlbnQYi-gUDA" ...

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