Cloud Endpoints Frameworks

Cloud Endpoints Frameworks is a web framework for the App Engine standard Python 2.7 and Java 8 first generation runtime environments. Endpoints Frameworks provides the tools and libraries that allow you to generate REST APIs and client libraries for your application.

Like other web frameworks, Endpoints Frameworks handles the low-level communication details of HTTP requests and responses for your application. When a client sends a request to your API, Endpoints Frameworks routes the request's URL to the function or method in your code that processes the request. Endpoints Frameworks converts the return value to JSON and sends the response. You add metadata (by using annotations in Java and decorators in Python) to your source code. The metadata defines the surface of the REST APIs for your application.


@ApiMethod(name = "echo")
public Message echo(Message message, @Named("n") @Nullable Integer n) {
  return doEcho(message, n);

In the example code, the annotations begin with the @ character.


    # This method takes a ResourceContainer defined above.
    # This method returns an Echo message.
def echo(self, request):
    output_message = ' '.join([request.message] * request.n)
    return EchoResponse(message=output_message)

In the example code, the decorators begin with the @ character.

With Endpoints Frameworks, you do not have to deploy a third-party web server (such as Apache Tomcat or Gunicorn) with your application. You annotate or decorate the code and deploy your application as you normally would to App Engine standard.

API management

The Extensible Service Proxy (ESP) provides API management features for Cloud Endpoints for OpenAPI and Cloud Endpoints gRPC. ESP is typically deployed as a container in front of your application. Because the App Engine first generation runtime environments do not support multi-container deployments, you cannot run ESP on App Engine standard.

Endpoints Frameworks provides API management features that are comparable to the features that ESP provides for Cloud Endpoints. Endpoints Frameworks includes a built-in API gateway that intercepts all requests and performs any necessary checks (such as authentication) before forwarding the request to the API backend. When the backend responds, Endpoints Frameworks gathers and reports telemetry. You can view metrics for your API on the Endpoints Services page in the GCP Console.

Endpoints Frameworks can be used with or without API management functionality. Use of Endpoints Frameworks without API management functionality is offered at no charge. API management functionality is charged according to the Cloud Endpoints pricing page.


  • Endpoints Frameworks is supported only on the Python 2.7 and Java 8 first generation runtimes in the App Engine standard environment.
  • Endpoints Frameworks does not support the Node.js, PHP, and Go runtime environments on the App Engine standard environment.
  • Endpoints Frameworks does not support the App Engine flexible environment.
  • Endpoints Frameworks does not support Cloud Functions, Compute Engine, and Google Kubernetes Engine.

What's next

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Endpoints Frameworks for App Engine
Need help? Visit our support page.