Web (JavaScript) Client Tutorial

Cloud Endpoints Frameworks v1 has been deprecated and will be shut down on August 2, 2018. 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.

Google Cloud Endpoints Frameworks is a feature that enables developers to easily develop and host APIs on App Engine with OAuth 2.0 support. From this single API source, Endpoints also lets developers generate strongly-typed client libraries for Java (Android) and Objective-C (iOS), along with dynamically-typed libraries for JavaScript.

Purpose of the tutorial

This tutorial focuses only on building a web (JavaScript) client that uses the API provided by the API backend created in the API backend tutorial. You need to complete that backend tutorial first, because this client tutorial adds code to that backend project and requires that backend API to be running in order to successfully make requests against it.

In this tutorial, you will learn how to:

  • Create a simple HTML page that provides client UI to access the backend API.
  • Create the JavaScript that is invoked by the client UI and does the actual work of accessing the backend.
  • Deploy client app and API backend to production App Engine, then test the client.
  • Use OAuth 2.0 in the client to gain access to an API backend method that is restricted to authorized clients.

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.

Topics covered

The following topics lead you through the tutorial:


Continue to Setup.
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Endpoints Frameworks for App Engine