O'Reilly logo

iOS Cloud Development For Dummies by Neal Goldstein

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

Chapter 13

The Model’s Model

In This Chapter

arrow Examining the App Engine datastore

arrow Seeing how models work

arrow Creating the rtpointsofinterest model

arrow Generating test data

arrow Testing web services in a browser

The whole point behind web services is that they allow you to access resources and either return representations of those resources or allow you to operate on them. In the case of rtpointsofinterest, that resource is — wait for it — Points of Interest and you’ll need a way to create and manage those Points of Interest.

As I explain in Chapter 11, you’ll use the App Engine datastore to store your data. The entities are created from Python objects, with the object’s attributes becoming properties for the entity.

In the Python API, a (data) model is used to describe an entity, and in this chapter, you create the data model for rtpointsofinterest.

What’s in the Model?

Start by thinking about what kind of data model you need for the rtpointsofinterest resource (also known as the Google App Engine ...

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