Skip to content
AxeemHaiderPublic

About

Zeem backend API on Google Cloud Endpoints Frameworks for App Engine (Java)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Hello World Google Cloud Endpoints Frameworks for App Engine

This generated sample provides an example of a migration from the prior version of Google Cloud Endpoints Frameworks to new Google Cloud Endpoints Frameworks for App Engine using a Discovery Document. Additionally, this sample provides an example of using the new App Engine Maven and Gradle plugins for deploying your Google App Engine Standard applications.

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 and a quickstart is provided here.

  1. [Optional]: User Authenticating with Google Accounts in Web Clients

    1. Update the WEB_CLIENT_ID in Constants.java to reflect the web client ID you have registered in the Credentials on Developers Console for OAuth 2.0 client IDs.

    2. Update the value of google.devrel.samples.helloendpoints.CLIENT_ID in base.js to reflect the web client ID you have registered in the Credentials on Developers Console for OAuth 2.0 client IDs.

  2. [Optional]: User Authenticating with Google Accounts in other Applications Types

  3. [Optional]: We recommend new projects should use Cloud Endpoints Frameworks v2.0. Alternatively, use Cloud Endpoints Frameworks v2.0 Maven and Gradle client library generation plugins with 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
      
  4. Build and Run the application locally at http://localhost:8080 by using:

    mvn clean appengine:run

  5. Explore local server's API explorer by browsing to:

    http://localhost:8080/_ah/api/explorer

  6. Generate the discovery document located at target/discovery-docs/helloworld-v1-rest.discovery by using:

    mvn endpoints-framework:discoveryDocs

  7. Generate the client library and readme located at target/client-libs/helloworld-v1-java.zip by using:

    mvn endpoints-framework:clientLibs

  8. Build and Deploy your application to Google App Engine by using:

    mvn clean appengine:deploy

  9. Run the application locally at http://localhost:8080 by using:

    gradle clean appengineRun

  10. Explore local server's API explorer by browsing to:

    http://localhost:8080/_ah/api/explorer

  11. Generate the discovery document located at build/endpointsDiscoveryDocs/helloworld-v1-rest.discovery by using:

    gradle endpointsDiscoveryDocs

  12. Generate the client library located at build/endpointsClientLibs/helloworld-v1-java.zip by using:

    gradle endpointsClientLibs

  13. Deploy your application to Google App Engine by using:

    gradle clean appengineDeploy

About

Zeem backend API on Google Cloud Endpoints Frameworks for App Engine (Java)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages