You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: appengine/standard/endpoints-frameworks-v2/echo/README.md
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,19 +19,34 @@ Remember to replace [YOUR-PROJECT-ID] with your project ID.
19
19
20
20
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`.
21
21
22
-
Deploy the generated swagger spec to Google Cloud Service Management: `gcloud alpha service-management deploy echo-v1_swagger.json`
22
+
Deploy the generated swagger spec to Google Cloud Service Management: `gcloud service-management deploy echo-v1_swagger.json`
23
23
24
24
The command returns several lines of information, including a line similar to the following:
25
25
26
-
Service Configuration [2016-08-01r0] uploaded for service "echo-api.endpoints.[YOUR-PROJECT-ID].cloud.goog"
26
+
Service Configuration [2016-08-01r0] uploaded for service "echo-api.endpoints.[YOUR-PROJECT-ID].cloud.goog"
27
27
28
28
Open the `app.yaml` file and in the `env_variables` section, replace [YOUR-PROJECT-ID] in `echo-api.endpoints.[YOUR-PROJECT-ID].cloud.goog` with your project ID. This is your Endpoints service name. Then replace `2016-08-01r0` with your uploaded service management configuration.
29
29
30
30
Then, deploy the sample using `gcloud`:
31
31
32
-
$ gcloud beta app deploy
32
+
$ gcloud app deploy
33
33
34
-
Once deployed, you can access the application at https://your-service.appspot.com
34
+
## Sending a request
35
35
36
-
Note that local deployment with dev_appserver.py is not yet supported with
37
-
Endpoints Frameworks v2.
36
+
To send a request to the API, from a command line, invoke the following `cURL` command:
0 commit comments