From ba95403da5c1178b047a6858f4c928086217c034 Mon Sep 17 00:00:00 2001 From: Sep Ebrahimzadeh Date: Tue, 13 Dec 2016 13:02:31 -0800 Subject: [PATCH 1/2] Update Endpoints samples: 1. Change default service names to the new cloud.goog format. 2. Change app.yaml beta_settings to endpoints_api_service. --- endpoints/getting-started/app.yaml | 10 +++++----- endpoints/getting-started/openapi.yaml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/endpoints/getting-started/app.yaml b/endpoints/getting-started/app.yaml index b5364017e7..59ea927370 100644 --- a/endpoints/getting-started/app.yaml +++ b/endpoints/getting-started/app.yaml @@ -1,8 +1,8 @@ runtime: php env: flex -beta_settings: - # Enable Google Cloud Endpoints API management. - use_endpoints_api_management: true - # Specify the Swagger API specification. - endpoints_swagger_spec_file: openapi.yaml +endpoints_api_service: + # The following values are to be replaced by information from the output of + # 'gcloud service-management deploy openapi.yaml' command. + name: ENDPOINTS SERVICE-NAME + config_id: ENDPOINTS CONFIG-ID diff --git a/endpoints/getting-started/openapi.yaml b/endpoints/getting-started/openapi.yaml index 1a9a19270f..8c0a82ccbc 100644 --- a/endpoints/getting-started/openapi.yaml +++ b/endpoints/getting-started/openapi.yaml @@ -4,7 +4,7 @@ info: description: "A simple Google Cloud Endpoints API example." title: "Endpoints Example" version: "1.0.0" -host: "YOUR-PROJECT-ID.appspot.com" +host: "echo-api.endpoints.YOUR-PROJECT-ID.cloud.goog" # [END swagger] basePath: "/" consumes: From bc83608d82110484d9144f5d77f6ac36c6387102 Mon Sep 17 00:00:00 2001 From: Sep Ebrahimzadeh Date: Tue, 13 Dec 2016 16:13:36 -0800 Subject: [PATCH 2/2] Improve comment in app.yaml --- endpoints/getting-started/app.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/endpoints/getting-started/app.yaml b/endpoints/getting-started/app.yaml index 59ea927370..09dd36ad96 100644 --- a/endpoints/getting-started/app.yaml +++ b/endpoints/getting-started/app.yaml @@ -3,6 +3,10 @@ env: flex endpoints_api_service: # The following values are to be replaced by information from the output of - # 'gcloud service-management deploy openapi.yaml' command. - name: ENDPOINTS SERVICE-NAME - config_id: ENDPOINTS CONFIG-ID + # 'gcloud service-management deploy openapi.yaml' command. If you have + # previously run the deploy command, you can list your existing configuration + # ids using the 'configs list' command as follows: + # 'gcloud service-management configs list --service=echo-api.endpoints.[PROJECT-ID].cloud.goog' + # where echo-api.endpoints.[PROJECT-ID].cloud.goog is your Endpoints service name. + name: ENDPOINTS SERVICE NAME + config_id: ENDPOINTS CONFIG ID