From ad2e7750ffcea76e02c16fe7e665c124fdf95dd0 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 21 Sep 2023 02:32:53 -0400 Subject: [PATCH] Fix output path and print message --- gen-api-doc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gen-api-doc b/gen-api-doc index e68356f9..57199622 100755 --- a/gen-api-doc +++ b/gen-api-doc @@ -14,7 +14,7 @@ sys.path.append('api-daemon') import pvcapid.flaskapi as pvc_api -swagger_file = "docs/manuals/swagger.json" +swagger_file = "swagger.json" swagger_data = swagger(pvc_api.app) swagger_data['info']['version'] = "1.0" swagger_data['info']['title'] = "PVC Client and Provisioner API" @@ -22,3 +22,5 @@ swagger_data['host'] = "pvc.local:7370" with open(swagger_file, 'w') as fd: fd.write(json.dumps(swagger_data, sort_keys=True, indent=4)) + +print(f"Swagger file output to {swagger_file}; add it to the PVC documentation repo.")