Skip to content

Commit a194aa7

Browse files
inklesspenJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Corrections to Endpoints Frameworks echo README (GoogleCloudPlatform#1324)
Sample URLs were replaced with correct ones, the sample filename is corrected, and some terminology is also corrected (Swagger is now OpenAPI).
1 parent cd16158 commit a194aa7

File tree

1 file changed

+3
-3
lines changed
  • appengine/standard/endpoints-frameworks-v2/echo

1 file changed

+3
-3
lines changed

appengine/standard/endpoints-frameworks-v2/echo/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ Install the Endpoints Frameworks v2 library:
1717

1818
## Deploying to Google App Engine
1919

20-
Generate a swagger file by running: `python lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname echo-api.endpoints.[YOUR-PROJECT-ID].cloud.goog`
20+
Generate an OpenAPI file by running: `python lib/endpoints/endpointscfg.py get_openapi_spec main.EchoApi --hostname [YOUR-PROJECT-ID].appspot.com`
2121

2222
Remember to replace [YOUR-PROJECT-ID] with your project ID.
2323

2424
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`.
2525

26-
Deploy the generated swagger spec to Google Cloud Service Management: `gcloud endpoints services deploy echo-v1_swagger.json`
26+
Deploy the generated service spec to Google Cloud Service Management: `gcloud endpoints services deploy echov1openapi.json`
2727

2828
The command returns several lines of information, including a line similar to the following:
2929

30-
Service Configuration [2016-08-01r0] uploaded for service "echo-api.endpoints.[YOUR-PROJECT-ID].cloud.goog"
30+
Service Configuration [2016-08-01r0] uploaded for service "[YOUR-PROJECT-ID].appspot.com"
3131

3232
Open the `app.yaml` file and in the `env_variables` section, replace [YOUR-PROJECT-ID] in `[YOUR-PROJECT-ID].appspot.com` with your project ID. This is your Endpoints service name. Then replace `2016-08-01r0` with your uploaded service management configuration.
3333

0 commit comments

Comments
 (0)