Update startup of API and Swagger generator

References #79
This commit is contained in:
Joshua Boniface 2020-02-08 19:52:15 -05:00
parent ce985234c3
commit 3532dcc11f
3 changed files with 5639 additions and 5617 deletions

File diff suppressed because it is too large Load Diff

5636
api-daemon/pvcapid/api.py Executable file

File diff suppressed because it is too large Load Diff

View File

@ -12,10 +12,9 @@ os.environ['PVC_CONFIG_FILE'] = "./api-daemon/pvcapid.sample.yaml"
sys.path.append('api-daemon')
pvc_api = __import__('pvcapid')
import pvcapid.api as pvc_api
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"