7. Application Logic

Now that I can create and manipulate objects that the user cares about working with in BrowseOverflow, it’s time to think about hooking up with the real StackOverflow service so that the objects created in the app reflect the content of the site. This means going to the Stack Exchange API documentation at http://api.stackoverflow.com/1.1/usage and finding out how to consume their data.

Plan of Attack

According to the API documentation, StackOverflow has methods for requesting the questions in a topic, and the details for a question including the list of answers for that question. This does not validate the design for the domain model from Chapter 6, “The Data Model,” but indicates that because it’s a good fit for the data ...

Get Test-Driven iOS Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.