@@ -35,6 +35,12 @@ process is explained [here][8] and a quickstart is provided [here][9].
35
35
- [ Google Cloud Endpoints Frameworks Gradle Plugin] [ 11 ]
36
36
37
37
## 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
+
38
44
1 . [ Optional] : User Authenticating with Google Accounts in Web Clients
39
45
40
46
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].
88
94
89
95
[http://localhost:8080/_ah/api/explorer][13]
90
96
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
+
91
102
1. Generate the client library located at
92
103
`target/client-libs/helloworld-v1-java.zip` by using:
93
104
@@ -111,6 +122,11 @@ process is explained [here][8] and a quickstart is provided [here][9].
111
122
112
123
[http://localhost:8080/_ah/api/explorer][13]
113
124
125
+ 1. Generate the discovery document located at
126
+ `build/endpointsDiscoveryDocs/helloworld-v1-rest.discovery` by using:
127
+
128
+ `gradle endpointsDiscoveryDocs`
129
+
114
130
1. Generate the client library located at
115
131
`build/endpointsClientLibs/helloworld-v1-java.zip` by using:
116
132
0 commit comments