Add proper (local) URL to swagger docs

This commit is contained in:
Joshua Boniface 2019-12-23 21:06:08 -05:00
parent 05f08a714a
commit 60ffe534a1
2 changed files with 2 additions and 0 deletions

View File

@ -904,6 +904,7 @@
},
"info": {
"title": "PVC Client and Provisioner API",
"url": "http://pvc.local:7570",
"version": "1.0"
},
"paths": {

View File

@ -19,6 +19,7 @@ swagger_file = "docs/manuals/swagger.json"
swagger_data = swagger(pvc_api.app)
swagger_data['info']['version'] = "1.0"
swagger_data['info']['title'] = "PVC Client and Provisioner API"
swagger_data['info']['url'] = "http://pvc.local:7570"
with open(swagger_file, 'w') as fd:
fd.write(json.dumps(swagger_data, sort_keys=True, indent=4))