Skip to content

Commit

Permalink
Merge pull request #303 from sepehre/master
Browse files Browse the repository at this point in the history
Make Endpoints Java sample work end to end
  • Loading branch information
ludoch committed Aug 17, 2016
2 parents b0fda6e + 068e773 commit a9ba257
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
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

0 comments on commit a9ba257

Please sign in to comment.