Add proper (local) URL to swagger docs
This commit is contained in:
parent
05f08a714a
commit
60ffe534a1
|
@ -904,6 +904,7 @@
|
||||||
},
|
},
|
||||||
"info": {
|
"info": {
|
||||||
"title": "PVC Client and Provisioner API",
|
"title": "PVC Client and Provisioner API",
|
||||||
|
"url": "http://pvc.local:7570",
|
||||||
"version": "1.0"
|
"version": "1.0"
|
||||||
},
|
},
|
||||||
"paths": {
|
"paths": {
|
||||||
|
|
|
@ -19,6 +19,7 @@ swagger_file = "docs/manuals/swagger.json"
|
||||||
swagger_data = swagger(pvc_api.app)
|
swagger_data = swagger(pvc_api.app)
|
||||||
swagger_data['info']['version'] = "1.0"
|
swagger_data['info']['version'] = "1.0"
|
||||||
swagger_data['info']['title'] = "PVC Client and Provisioner API"
|
swagger_data['info']['title'] = "PVC Client and Provisioner API"
|
||||||
|
swagger_data['info']['url'] = "http://pvc.local:7570"
|
||||||
|
|
||||||
with open(swagger_file, 'w') as fd:
|
with open(swagger_file, 'w') as fd:
|
||||||
fd.write(json.dumps(swagger_data, sort_keys=True, indent=4))
|
fd.write(json.dumps(swagger_data, sort_keys=True, indent=4))
|
||||||
|
|
Loading…
Reference in New Issue