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

Trying basic stuff

For our basic example, we will check the status of MongoHQ servers. For showing statuses, MongoHQ uses the Stashboard web app, which you can access at http://status.mongohq.com.

The following screenshot (cropped) shows the status page of the MongoHQ servers:

Trying basic stuff

An example of Stashboard App usage is Twilio, with the status page at http://status.twilio.com, and the Status API endpoint at http://status.twilio.com/api/v1/.

The documentation for a Stashboard API can be found at https://stashboard.readthedocs.org/en/latest/restapi.html.

To keep going, first let's define our StatusItem object, looking at a possible data we will need:

// StatusItem.h ...

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