Skip to content

Commit 9ac2895

Browse files
sepehredpebot
authored andcommitted
Update Endpoints samples: (#447)
1 parent aa1fecb commit 9ac2895

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

appengine/endpoints-frameworks-v2/backend/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<mainClass>com.google.api.server.spi.tools.EndpointsTool</mainClass>
8484
<arguments>
8585
<argument>get-swagger-doc</argument>
86-
<argument>--hostname=${endpoints.project.id}.appspot.com</argument>
86+
<argument>--hostname=echo-api.endpoints.${endpoints.project.id}.cloud.goog</argument>
8787
<argument>--war=target/echo-1.0-SNAPSHOT</argument>
8888
<argument>com.example.echo.Echo</argument>
8989
</arguments>

appengine/endpoints-frameworks-v2/backend/src/main/webapp/WEB-INF/appengine-web.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
</system-properties>
2929

3030
<env-variables>
31-
<env-var name="ENDPOINTS_SERVICE_NAME" value="${endpoints.project.id}.appspot.com" />
31+
<env-var name="ENDPOINTS_SERVICE_NAME" value="echo-api.endpoints.${endpoints.project.id}.cloud.goog" />
3232
</env-variables>
3333
</appengine-web-app>

appengine/endpoints-frameworks-v2/backend/src/main/webapp/WEB-INF/web.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</init-param>
5050
<init-param>
5151
<param-name>endpoints.serviceName</param-name>
52-
<param-value>${endpoints.project.id}.appspot.com</param-value>
52+
<param-value>echo-api.endpoints.${endpoints.project.id}.cloud.goog</param-value>
5353
</init-param>
5454
</filter>
5555

endpoints/getting-started/pom.xml

-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
<groupId>com.google.appengine</groupId>
5353
<artifactId>gcloud-maven-plugin</artifactId>
5454
<version>2.0.9.121.v20160815</version>
55-
<configuration>
56-
<gcloud_app_prefix>beta</gcloud_app_prefix>
57-
</configuration>
5855
</plugin>
5956
<plugin>
6057
<groupId>com.google.cloud.tools</groupId>

endpoints/getting-started/src/main/appengine/app.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ handlers:
66
script: this field is required, but ignored
77
secure: always
88

9-
beta_settings:
10-
# Enable Google Cloud Endpoints API management.
11-
use_endpoints_api_management: true
12-
# Specify the Open API specification.
13-
endpoints_swagger_spec_file: openapi.yaml
9+
endpoints_api_service:
10+
# The following values are to be replaced by information from the output of
11+
# 'gcloud service-management deploy openapi.yaml' command.
12+
name: ENDPOINTS SERVICE-NAME
13+
config_id: ENDPOINTS CONFIG-ID

endpoints/getting-started/src/main/appengine/openapi.yaml

+1-1
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)