Skip to content

Commit de18270

Browse files
committed
new release
1 parent fb91a23 commit de18270

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

‎python_framework/api/src/service/openapi/OpenApiManager.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,14 @@ def addSwagger(apiInstance, appInstance):
6363
DOCUMENTATION_FILE
6464
)
6565
selfSrcPath = f"""src{globals.OS_SEPARATOR}service{globals.OS_SEPARATOR}openapi{globals.OS_SEPARATOR}{__name__.split('.')[-1]}.py"""
66+
log.debug(addSwagger, f'selfSrcPath at "{selfSrcPath}"')
67+
6668
apiInstance.documentationFolderPath = f'''{__file__.split(selfSrcPath)[0]}{KW_RESOURCE}{globals.OS_SEPARATOR}{KW_OPEN_API}{KW_UI}{globals.OS_SEPARATOR}'''
67-
swaggerUi._static_folder = apiInstance.documentationFolderPath
69+
log.debug(addSwagger, f'apiInstance.documentationFolderPath at "{apiInstance.documentationFolderPath}"')
70+
71+
swaggerUi._static_folder = apiInstance.documentationFolderPath
72+
log.debug(addSwagger, f'swaggerUi._static_folder at "{swaggerUi._static_folder}"')
73+
6874
appInstance.register_blueprint(swaggerUi, url_prefix=documentationUrl)
6975
OpenApiDocumentationFile.overrideDocumentation(apiInstance)
7076

‎requirements.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
gunicorn
2+
Flask
3+
Flask-RESTful
4+
Flask-JWT-Extended
5+
Flask-Swagger-Ui
6+
psycopg2-binary
7+
SQLAlchemy
8+
globals==0.0.42
9+
python_helper==0.0.14
10+
python_framework==0.0.1-45

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from distutils.core import setup
22

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

0 commit comments

Comments
 (0)