Skip to content

Commit

Permalink
new release
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelJansen committed Oct 23, 2020
1 parent fb91a23 commit de18270
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 7 additions & 1 deletion python_framework/api/src/service/openapi/OpenApiManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ def addSwagger(apiInstance, appInstance):
DOCUMENTATION_FILE
)
selfSrcPath = f"""src{globals.OS_SEPARATOR}service{globals.OS_SEPARATOR}openapi{globals.OS_SEPARATOR}{__name__.split('.')[-1]}.py"""
log.debug(addSwagger, f'selfSrcPath at "{selfSrcPath}"')

apiInstance.documentationFolderPath = f'''{__file__.split(selfSrcPath)[0]}{KW_RESOURCE}{globals.OS_SEPARATOR}{KW_OPEN_API}{KW_UI}{globals.OS_SEPARATOR}'''
swaggerUi._static_folder = apiInstance.documentationFolderPath
log.debug(addSwagger, f'apiInstance.documentationFolderPath at "{apiInstance.documentationFolderPath}"')

swaggerUi._static_folder = apiInstance.documentationFolderPath
log.debug(addSwagger, f'swaggerUi._static_folder at "{swaggerUi._static_folder}"')

appInstance.register_blueprint(swaggerUi, url_prefix=documentationUrl)
OpenApiDocumentationFile.overrideDocumentation(apiInstance)

Expand Down
10 changes: 10 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
gunicorn
Flask
Flask-RESTful
Flask-JWT-Extended
Flask-Swagger-Ui
psycopg2-binary
SQLAlchemy
globals==0.0.42
python_helper==0.0.14
python_framework==0.0.1-45
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from distutils.core import setup

version = '0.0.1-45'
version = '0.0.1-46'
name = 'python_framework'
url = f'https://github.com/SamuelJansen/{name}/'

Expand Down

0 comments on commit de18270

Please sign in to comment.