We recommend that you use the latest version of this feature, which is renamed to Cloud Endpoints Frameworks for App Engine. This new version supports App Engine standard environment, provides lower latency, and has better integration with App Engine. For more details, see Migrating to 2.0.
This tutorial focuses only on building an API with Endpoints Framework. It does not show how to generate client libraries or write client apps that use the API backend. Those aspects of Endpoints Frameworks are documented elsewhere in the Endpoints Frameworks documentation.
In this tutorial, you will learn how to:
- Create a project for an API backend using the Endpoints Framework.
- Write an extremely simple API backend.
- Run the API backend on the local development server.
- Test your API backend using the API Explorer.
- Use OAuth 2.0 to restrict access to a method in the API and deploy to production to test.
Complete sample code location
The tutorial leads you through the addition of all the code required to run the sample. However, if you want to download the entire project, visit the code repository containing the appengine-endpoints-helloendpoints-python project.
The following topics lead you through the tutorial:
- Creating a Cloud Platform project and setting up your environment.
- Writing the API: A Simple GET: Write a Backend with a Simple GET, run the backend and try it out.
- Writing the API: A Simple POST: Add a simple POST to the backend.
- Adding a Method Protected by OAuth: Add a simple GET that is protected by OAuth 2.0.
Continue to Setup.