Tripwego API with Google Cloud Endpoints Frameworks using Java on App Engine Standard.
To build the project:
mvn clean package
To generate the required configuration file openapi.json
:
mvn endpoints-framework:openApiDocs
To deploy the API:
-
Invoke the
gcloud
command to deploy the API configuration file:gcloud endpoints services deploy target/openapi-docs/openapi.json
-
Deploy the API implementation code by invoking:
gcloud config list gcloud config set project tripwego-api mvn appengine:deploy
The first time you upload a sample app, you may be prompted to authorize the deployment. Follow the prompts: when you are presented with a browser window containing a code, copy it to the terminal window.
-
Wait for the upload to finish.
gcloud datastore cleanup-indexes /Users/JG/Documents/DEV/WK_TRIPWEGO/tripwego-api/src/main/webapp/WEB-INF/index.yaml
gcloud datastore create-indexes /Users/JG/Documents/DEV/WK_TRIPWEGO/tripwego-api/src/main/webapp/WEB-INF/index.yaml
gcloud app deploy /Users/JG/Documents/DEV/WK_TRIPWEGO/tripwego-api/src/main/webapp/WEB-INF/cron.yaml