Skip to content

Commit 11bd73e

Browse files
committed
feat: deploy framework independency
1 parent e913210 commit 11bd73e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
def addSwagger(apiInstance, appInstance):
5959
globals = apiInstance.globals
60-
documentationUrl = f'{apiInstance.baseUrl}{c.SLASH}{KW_OPEN_API}'
60+
documentationUrl = f'{globals.OS_SEPARATOR}{apiInstance.baseUrl}{c.SLASH}{KW_OPEN_API}'
6161
swaggerUi = get_swaggerui_blueprint(
6262
documentationUrl,
6363
DOCUMENTATION_FILE
@@ -72,6 +72,7 @@ def addSwagger(apiInstance, appInstance):
7272
# log.debug(addSwagger, f'swaggerUi._static_folder at "{swaggerUi._static_folder}"')
7373

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

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

‎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-50'
3+
version = '0.0.1-51'
44
name = 'python_framework'
55
url = f'https://github.com/SamuelJansen/{name}/'
66

0 commit comments

Comments
 (0)