Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions appengine/standard/endpoints-frameworks-v2/echo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ This demonstrates how to use Google Cloud Endpoints Frameworks v2 on Google App

## Setup

Create a `lib` directory in which to install the Endpoints Frameworks v2 library. For more info, see [Installing a library](https://cloud.google.com/appengine/docs/python/tools/using-libraries-python-27#installing_a_library).

Install the Endpoints Frameworks v2 library:

$ mkdir lib
$ pip install -t lib google-endpoints

## Running Locally
Expand All @@ -27,7 +24,7 @@ Generate a swagger file by running: `python lib/endpoints/endpointscfg.py get_sw

To set up OAuth2, replace `your-oauth-client-id.com` under `audiences` in the annotation for `get_user_email` with your OAuth2 client ID. If you want to use Google OAuth2 Playground, use `407408718192.apps.googleusercontent.com` as your audience. To generate a JWT, go to the following address: `https://developers.google.com/oauthplayground`.

Deploy the generated swagger spec to Google Cloud Service Management: `gcloud alpha service-management deploy echo-v1_swagger.json`
Deploy the generated swagger spec to Google Cloud Service Management: `gcloud beta service-management deploy echo-v1_swagger.json`

Open the `app.yaml` file and in the `env_variables` section, replace `your-service.appspot.com` with your service name, and `2016-08-01r0` with your uploaded service management configuration.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from google.appengine.ext import vendor
import pkg_resources

# Add any libraries installed in the `lib` folder.
vendor.add('lib')

# The Python runtime declares a "google" package, but so does
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should already be the case.

# google-endpoints-api-management. Therefore the "google" package must behave
# as a namespace package, otherwise one import or another will fail.
pkg_resources.declare_namespace('google')