Skip to content

Commit

Permalink
Update Endpoints samples: (#272)
Browse files Browse the repository at this point in the history
* Update Endpoints samples:

1. Change default service names to the new cloud.goog format.
2. Change app.yaml beta_settings to endpoints_api_service.

* Update app.yaml
  • Loading branch information
sepehre authored and jmdobry committed Dec 13, 2016
1 parent e78f6dc commit 4e70bcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions endpoints/getting-started/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
runtime: nodejs
vm: true

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/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 4e70bcf

Please sign in to comment.