Skip to content

Commit a809c73

Browse files
sepehrebshaffer
authored andcommitted
Update Endpoints samples: (GoogleCloudPlatform#276)
* Update Endpoints samples: 1. Change default service names to the new cloud.goog format. 2. Change app.yaml beta_settings to endpoints_api_service.
1 parent 152936b commit a809c73

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

endpoints/getting-started/app.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
runtime: php
22
env: flex
33

4-
beta_settings:
5-
# Enable Google Cloud Endpoints API management.
6-
use_endpoints_api_management: true
7-
# Specify the Swagger API specification.
8-
endpoints_swagger_spec_file: openapi.yaml
4+
endpoints_api_service:
5+
# The following values are to be replaced by information from the output of
6+
# 'gcloud service-management deploy openapi.yaml' command. If you have
7+
# previously run the deploy command, you can list your existing configuration
8+
# ids using the 'configs list' command as follows:
9+
# 'gcloud service-management configs list --service=echo-api.endpoints.[PROJECT-ID].cloud.goog'
10+
# where echo-api.endpoints.[PROJECT-ID].cloud.goog is your Endpoints service name.
11+
name: ENDPOINTS SERVICE NAME
12+
config_id: ENDPOINTS CONFIG ID

endpoints/getting-started/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
description: "A simple Google Cloud Endpoints API example."
55
title: "Endpoints Example"
66
version: "1.0.0"
7-
host: "YOUR-PROJECT-ID.appspot.com"
7+
host: "echo-api.endpoints.YOUR-PROJECT-ID.cloud.goog"
88
# [END swagger]
99
basePath: "/"
1010
consumes:

0 commit comments

Comments
 (0)