Skip to content

Commit

Permalink
Update Endpoints samples: (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
sepehre authored and dpebot committed Dec 13, 2016
1 parent aa1fecb commit 9ac2895
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion appengine/endpoints-frameworks-v2/backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<mainClass>com.google.api.server.spi.tools.EndpointsTool</mainClass>
<arguments>
<argument>get-swagger-doc</argument>
<argument>--hostname=${endpoints.project.id}.appspot.com</argument>
<argument>--hostname=echo-api.endpoints.${endpoints.project.id}.cloud.goog</argument>
<argument>--war=target/echo-1.0-SNAPSHOT</argument>
<argument>com.example.echo.Echo</argument>
</arguments>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
</system-properties>

<env-variables>
<env-var name="ENDPOINTS_SERVICE_NAME" value="${endpoints.project.id}.appspot.com" />
<env-var name="ENDPOINTS_SERVICE_NAME" value="echo-api.endpoints.${endpoints.project.id}.cloud.goog" />
</env-variables>
</appengine-web-app>
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</init-param>
<init-param>
<param-name>endpoints.serviceName</param-name>
<param-value>${endpoints.project.id}.appspot.com</param-value>
<param-value>echo-api.endpoints.${endpoints.project.id}.cloud.goog</param-value>
</init-param>
</filter>

Expand Down
3 changes: 0 additions & 3 deletions endpoints/getting-started/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
<groupId>com.google.appengine</groupId>
<artifactId>gcloud-maven-plugin</artifactId>
<version>2.0.9.121.v20160815</version>
<configuration>
<gcloud_app_prefix>beta</gcloud_app_prefix>
</configuration>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
Expand Down
10 changes: 5 additions & 5 deletions endpoints/getting-started/src/main/appengine/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ handlers:
script: this field is required, but ignored
secure: always

beta_settings:
# Enable Google Cloud Endpoints API management.
use_endpoints_api_management: true
# Specify the Open 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
2 changes: 1 addition & 1 deletion endpoints/getting-started/src/main/appengine/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9ac2895

Please sign in to comment.