Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Endpoints Java sample work end to end #303

Merged
merged 3 commits into from
Aug 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions managed_vms/endpoints/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Google Cloud Endpoints on App Engine flexible environment
This sample demonstrates how to use Google Cloud Endpoints on Google App Engine Flexible Environment using Java.

## Edit the Swagger API specification

Open the [src/main/appengine/swagger.yaml](src/main/appengine/swagger.yaml) file in your favorite editor, and replace the YOUR-PROJECT-ID `host` line with your actual Google Cloud Platform project Id.

## Running locally
$ mvn jetty:run

## Deploying
$ mvn gcloud:deploy

## Calling your API

Please refer to the Google Cloud Endpoints [documentation](https://cloud.google.com/endpoints/docs/app-engine/) for App Engine Flexible Environment to learn about creating an API Key and calling your API.
5 changes: 4 additions & 1 deletion managed_vms/endpoints/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>gcloud-maven-plugin</artifactId>
<version>2.0.9.111.v20160527</version>
<version>2.0.9.121.v20160815</version>
<configuration>
<gcloud_app_prefix>beta</gcloud_app_prefix>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
1 change: 1 addition & 0 deletions managed_vms/endpoints/src/main/appengine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM gcr.io/google_appengine/jetty9

ADD managed-vms-endpoints-1.0-SNAPSHOT.war $JETTY_BASE/webapps/root.war
ADD . /app