Skip to content

Commit 3886762

Browse files
authored
Merge pull request #661 from GoogleCloudPlatform/update-endpoints-sample
Update Endpoints Migration Sample
2 parents 853233b + 3e8ebfa commit 3886762

File tree

5 files changed

+32
-18
lines changed

5 files changed

+32
-18
lines changed

appengine/endpoints-frameworks-v2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The new Google Cloud Endpoints Frameworks for App Engine provides
1313
It's recommended that you migrate projects using the prior version of [Cloud Endpoints Frameworks][1].
1414

1515

16-
[1]: https://cloud.google.com/appengine/docs/java/endpoints/
17-
[2]: https://cloud.google.com/appengine/docs/java/endpoints/migrating
16+
[1]: https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java
17+
[2]: https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java/migrating
1818
[3]: https://cloud.google.com/endpoints/docs/frameworks/java/about-cloud-endpoints-frameworks
1919
[4]: https://cloud.google.com/endpoints/docs/frameworks/java/quickstart-frameworks-java

appengine/endpoints-frameworks-v2/migration-example/README.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Hello World Google Cloud Endpoints for App Engine
22

33
This sample provides an example of a [migration][7] from the prior version of
4-
[Google Cloud Endpoints Frameworks][3] to new [Google Cloud Endpoints Frameworks for App Engine][8].
4+
[Google Cloud Endpoints Frameworks][3] to new
5+
[Google Cloud Endpoints Frameworks for App Engine][8] using a
6+
**Discovery Document**. Additionally, this sample provides an example of using
7+
the new App Engine Maven and Gradle plugins for deploying your Google App Engine
8+
Standard applications.
9+
510
This sample contains comments of how to use the prior Endpoints Frameworks as
611
well. For clarity, the prior Endpoints Frameworks and the new Endpoints
712
Frameworks are denoted as Endpoints Frameworks v1.0 and Endpoints Frameworks
@@ -22,6 +27,10 @@ process is explained [here][8] and a quickstart is provided [here][9].
2227
- [Google Cloud Endpoints Frameworks v1.0][3]
2328

2429
## Build and Deployment Plugins
30+
- [Google App Engine Maven plugin][14]
31+
- [Google App Engine Gradle plugin][15]
32+
33+
## Discovery Document and Client Library Generation Plugins
2534
- [Google Cloud Endpoints Frameworks Maven Plugin][10]
2635
- [Google Cloud Endpoints Frameworks Gradle Plugin][11]
2736

@@ -37,10 +46,12 @@ process is explained [here][8] and a quickstart is provided [here][9].
3746
have registered in the
3847
[Credentials on Developers Console for OAuth 2.0 client IDs][6].
3948

40-
1. [Optional]: User Authenticating with Google Accounts in other Applications Types
49+
1. [Optional]: User Authenticating with Google Accounts in other Applications
50+
Types
4151

42-
- Inside [Constants.java](src/main/java/com/example/helloendpoints/Constants.java) you will find placeholders for Android
43-
applications using Google Accounts client IDs registered in the
52+
- Inside [Constants.java](src/main/java/com/example/helloendpoints/Constants.java)
53+
you will find placeholders for Android applications using Google Accounts
54+
client IDs registered in the
4455
[Credentials on Developers Console for OAuth 2.0 client IDs][6].
4556

4657
- These client IDs are used when defining annotation for this sample API
@@ -77,8 +88,8 @@ process is explained [here][8] and a quickstart is provided [here][9].
7788
7889
[http://localhost:8080/_ah/api/explorer][13]
7990
80-
1. Generate the client library located at `target/client-libs/helloworld-v1-java.zip`
81-
by using:
91+
1. Generate the client library located at
92+
`target/client-libs/helloworld-v1-java.zip` by using:
8293
8394
`mvn endpoints-framework:clientLibs`
8495
@@ -100,8 +111,8 @@ process is explained [here][8] and a quickstart is provided [here][9].
100111
101112
[http://localhost:8080/_ah/api/explorer][13]
102113
103-
1. Generate the client library located at `build/endpointsClientLibs/helloworld-v1-java.zip`
104-
by using:
114+
1. Generate the client library located at
115+
`build/endpointsClientLibs/helloworld-v1-java.zip` by using:
105116
106117
`gradle endpointsClientLibs`
107118
@@ -112,14 +123,16 @@ process is explained [here][8] and a quickstart is provided [here][9].
112123
113124
[1]: https://cloud.google.com/appengine/docs/java/
114125
[2]: http://java.com/en/
115-
[3]: https://cloud.google.com/appengine/docs/java/endpoints/
126+
[3]: https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java
116127
[4]: https://cloud.google.com/appengine/docs/java/tools/maven
117128
[5]: http://localhost:8080/
118129
[6]: https://console.developers.google.com/project/_/apiui/credential
119-
[7]: https://cloud.google.com/appengine/docs/java/endpoints/migrating
130+
[7]: https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java/migrating
120131
[8]: https://cloud.google.com/endpoints/docs/frameworks/java/about-cloud-endpoints-frameworks
121132
[9]: https://cloud.google.com/endpoints/docs/frameworks/java/quickstart-frameworks-java
122133
[10]: https://github.com/GoogleCloudPlatform/endpoints-framework-maven-plugin
123134
[11]: https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin
124135
[12]: https://cloud.google.com/endpoints/docs/authenticating-users-frameworks
125136
[13]: http://localhost:8080/_ah/api/explorer
137+
[14]: https://github.com/GoogleCloudPlatform/app-maven-plugin
138+
[15]: https://github.com/GoogleCloudPlatform/app-gradle-plugin

appengine/endpoints-frameworks-v2/migration-example/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ buildscript { // Configuration for building
2020
}
2121
dependencies {
2222
// App Engine Gradle plugin
23-
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.1.1'
23+
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.3.0'
2424

2525
// Endpoints Frameworks Gradle plugin
26-
classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.0-beta6'
26+
classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.0-beta9'
2727
}
2828
}
2929
// [END buildscript]
@@ -55,7 +55,7 @@ dependencies {
5555

5656
// Endpoints Frameworks v2.0
5757
// [START endpoints-tools]
58-
compile group: 'com.google.endpoints', name: 'endpoints-framework-tools', version: '2.0.4'
58+
compile group: 'com.google.endpoints', name: 'endpoints-framework-tools', version: '2.0.7'
5959
// [END endpoints-tools]
6060
// End of Endpoints Frameworks v2.0
6161
}

appengine/endpoints-frameworks-v2/migration-example/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ limitations under the License.
6060
<dependency>
6161
<groupId>com.google.endpoints</groupId>
6262
<artifactId>endpoints-framework</artifactId>
63-
<version>2.0.4</version>
63+
<version>2.0.7</version>
6464
</dependency>
6565
<!-- [END endpoints-frameworks] -->
6666
<!-- End of Endpoints Frameworks v2.0 -->
@@ -85,7 +85,7 @@ limitations under the License.
8585
<plugin>
8686
<groupId>com.google.cloud.tools</groupId>
8787
<artifactId>appengine-maven-plugin</artifactId>
88-
<version>1.2.1</version>
88+
<version>1.3.1</version>
8989
<configuration>
9090
<!-- deploy configuration -->
9191
</configuration>
@@ -95,7 +95,7 @@ limitations under the License.
9595
<plugin>
9696
<groupId>com.google.cloud.tools</groupId>
9797
<artifactId>endpoints-framework-maven-plugin</artifactId>
98-
<version>1.0.0-beta3</version>
98+
<version>1.0.0-beta5</version>
9999
<configuration>
100100
<!-- plugin configuration -->
101101
</configuration>

appengine/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<module>datastore/indexes-exploding</module>
5656
<module>datastore/indexes-perfect</module>
5757
<module>endpoints-frameworks-v2/backend</module>
58+
<module>endpoints-frameworks-v2/migration-example</module>
5859
<module>firebase-event-proxy/gae-firebase-event-proxy</module>
5960
<module>firebase-tictactoe</module>
6061
<module>guestbook-objectify</module>

0 commit comments

Comments
 (0)