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 ...

Get iOS Cloud Development For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.