Skip to content

Commit 64f067f

Browse files
author
Frank Natividad
committed
Added additional information on discovery doc generation to README.md
1 parent 8ebf743 commit 64f067f

File tree

1 file changed

+16
-0
lines changed
  • appengine/endpoints-frameworks-v2/migration-example

1 file changed

+16
-0
lines changed

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

+16
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ process is explained [here][8] and a quickstart is provided [here][9].
3535
- [Google Cloud Endpoints Frameworks Gradle Plugin][11]
3636

3737
## Setup
38+
1. The hostname used in a genearted Discovery document is set by replacing
39+
`GOOGLE_CLOUD_PROJECT` with your project id found in the following files.
40+
41+
- [Maven - pom.xml](pom.xml)
42+
- [Gradle - build.gradle](build.gradle)
43+
3844
1. [Optional]: User Authenticating with Google Accounts in Web Clients
3945

4046
1. Update the `WEB_CLIENT_ID` in [Constants.java](src/main/java/com/example/helloendpoints/Constants.java)
@@ -88,6 +94,11 @@ process is explained [here][8] and a quickstart is provided [here][9].
8894
8995
[http://localhost:8080/_ah/api/explorer][13]
9096
97+
1. Generate the discovery document located at
98+
`target/discovery-docs/helloworld-v1-rest.discovery` by using:
99+
100+
`mvn endpoints-framework:discoveryDocs`
101+
91102
1. Generate the client library located at
92103
`target/client-libs/helloworld-v1-java.zip` by using:
93104
@@ -111,6 +122,11 @@ process is explained [here][8] and a quickstart is provided [here][9].
111122
112123
[http://localhost:8080/_ah/api/explorer][13]
113124
125+
1. Generate the discovery document located at
126+
`build/endpointsDiscoveryDocs/helloworld-v1-rest.discovery` by using:
127+
128+
`gradle endpointsDiscoveryDocs`
129+
114130
1. Generate the client library located at
115131
`build/endpointsClientLibs/helloworld-v1-java.zip` by using:
116132

0 commit comments

Comments
 (0)