From 756b4cd2a77b3af5b25fc82c29371d4e74653fd4 Mon Sep 17 00:00:00 2001 From: Wesley Wong Date: Tue, 20 Dec 2016 16:09:53 -0800 Subject: [PATCH] Updates the Endpoints Java Framework sample README The latest changes to the Framework generates an openapi.json rather than a swagger.json. --- appengine/endpoints-frameworks-v2/backend/.gitignore | 1 + appengine/endpoints-frameworks-v2/backend/README.md | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appengine/endpoints-frameworks-v2/backend/.gitignore b/appengine/endpoints-frameworks-v2/backend/.gitignore index 168aa9434f5..efff06ec4bd 100644 --- a/appengine/endpoints-frameworks-v2/backend/.gitignore +++ b/appengine/endpoints-frameworks-v2/backend/.gitignore @@ -1 +1,2 @@ +openapi.json swagger.json diff --git a/appengine/endpoints-frameworks-v2/backend/README.md b/appengine/endpoints-frameworks-v2/backend/README.md index e911281e9af..4c226cda3b0 100644 --- a/appengine/endpoints-frameworks-v2/backend/README.md +++ b/appengine/endpoints-frameworks-v2/backend/README.md @@ -27,9 +27,9 @@ To build the project: mvn clean package -## Generating the swagger.json file +## Generating the openapi.json file -To generate the required configuration file `swagger.json`: +To generate the required configuration file `openapi.json`: mvn exec:java -DGetSwaggerDoc @@ -39,7 +39,7 @@ To deploy the sample API: 0. Invoke the `gcloud` command to deploy the API configuration file: - gcloud beta service-management deploy swagger.json + gcloud service-management deploy openapi.json 0. Deploy the API implementation code by invoking: