
archetype-resources.README.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of endpoints-skeleton-archetype
Show all versions of endpoints-skeleton-archetype
A skeleton project using Cloud Endpoints with Google App Engine Java
The newest version!
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
# Skeleton Google Cloud Endpoints Frameworks for App Engine using a Discovery Document
This generated sample provides a skeleton to get started with Cloud Endpoints
Frameworks for App Engine using a **Discovery Document**. This sample contains
comments of how to use the prior Endpoints Frameworks as well. For clarity, the
prior Endpoints Frameworks and the new Endpoints Frameworks are denoted as
Endpoints Frameworks v1.0 and Endpoints Frameworks v2.0 respectively.
Google Cloud Endpoints Frameworks v2.0 provides new functionality which may
require payment and uses an OpenAPI specification. The OpenAPI development
process is explained [here][8] and a quickstart is provided [here][9].
## Products
- [Google App Engine Standard][1]
## Language
- [Java][2]
## APIs
- [Google Cloud Endpoints Frameworks v2.0][8]
- [Google Cloud Endpoints Frameworks v1.0][3]
## Build and Deployment Plugins
- [Google App Engine Maven plugin][14]
- [Google App Engine Gradle plugin][15]
## Discovery Document and Client Library Generation Plugins
- [Google Cloud Endpoints Frameworks Maven Plugin][10]
- [Google Cloud Endpoints Frameworks Gradle Plugin][11]
## Setup
1. Add your API method to `src/main/java/${packageInPathFormat}/YourFirstAPI.java`.
1. [Optional]: Use Cloud Endpoints Frameworks v1.0.
- Uncomment Endpoints Frameworks v1.0 sections and comment
Endpoints Frameworks v2.0 sections in the following files.
```
pom.xml
build.gradle
src/main/webapp/WEB-INF/web.xml
```
## Build and Deployment
### Maven
1. Build and Run the application locally at [http://localhost:8080][5] by using:
`mvn clean appengine:run`
1. Explore local server's API explorer by browsing to:
[http://localhost:8080/_ah/api/explorer][13]
1. Generate the client library with a readme located at `target/client-libs/helloworld-v1-java.zip`
by using:
`mvn endpoints-framework:clientLibs`
1. Build and Deploy your application to Google App Engine by using:
`mvn clean appengine:deploy`
### Gradle
1. Build and Run the application locally at [http://localhost:8080][5] by using:
`gradle clean appengineRun`
1. Explore local server's API explorer by browsing to:
[http://localhost:8080/_ah/api/explorer][13]
1. Generate the client library with a readme located at
`build/endpointsClientLibs/helloworld-v1-java.zip` by using:
`gradle endpointsClientLibs`
1. Build and Deploy your application to Google App Engine by using:
`gradle clean appengineDeploy`
[1]: https://cloud.google.com/appengine/docs/java/
[2]: http://java.com/en/
[3]: https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java
[4]: https://cloud.google.com/appengine/docs/java/tools/maven
[5]: http://localhost:8080/
[6]: https://console.developers.google.com/project/_/apiui/credential
[7]: https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java/migrating
[8]: https://cloud.google.com/endpoints/docs/frameworks/java/about-cloud-endpoints-frameworks
[9]: https://cloud.google.com/endpoints/docs/frameworks/java/quickstart-frameworks-java
[10]: https://github.com/GoogleCloudPlatform/endpoints-framework-maven-plugin
[11]: https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin
[12]: https://cloud.google.com/endpoints/docs/authenticating-users-frameworks
[13]: http://localhost:8080/_ah_api/explorer
[14]: https://github.com/GoogleCloudPlatform/app-maven-plugin
[15]: https://github.com/GoogleCloudPlatform/app-gradle-plugin
© 2015 - 2025 Weber Informatics LLC | Privacy Policy