Testing the API with API Explorer

We can test our REST API on the local development environment by running the dev_appserver.py script or deploying the application on App Engine. In both cases, Cloud Endpoints provides a tool that let us explore our API; let's see how.

With the local development server running, we point the browser to the http://localhost:8080/_ah/api/explorer URL, and we are immediately redirected to the API Explorer, where we can see our API listed, as shown in the following screenshot:

Testing the API with API Explorer

When we click on our API name, the explorer lists all the endpoints exposed through the Cloud Endpoints service. Before we begin our test, we should ...

Get Python for Google App Engine 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.