Skip to content

Commit 46f28f5

Browse files
committed
new release
1 parent 9ccfaa0 commit 46f28f5

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
def getDocumentationFolderPath(apiInstance):
1414
globals = apiInstance.globals
1515
return f'{globals.currentPath}{KW_API}{globals.OS_SEPARATOR}{KW_RESOURCE}{globals.OS_SEPARATOR}{KW_OPEN_API}{KW_UI}'
16-
# return f'{apiInstance.documentationFolder}{g.OS_SEPARATOR}{DOCUMENTATION_FILE}'
1716

1817
def getDocumentationFilePath(apiInstance):
19-
# return f'{g.apiPath}api{g.OS_SEPARATOR}resource{g.OS_SEPARATOR}swaggerui{g.OS_SEPARATOR}swagger.json'
18+
globals = apiInstance.globals
2019
return f'{getDocumentationFolderPath(apiInstance)}{globals.OS_SEPARATOR}{DOCUMENTATION_FILE}'
2120

2221
def loadDocumentationAsString(apiInstance):

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def addSwagger(apiInstance, appInstance):
6363
DOCUMENTATION_FILE
6464
)
6565
swaggerUi._static_folder = f'{OpenApiDocumentationFile.getDocumentationFolderPath(apiInstance)}{globals.OS_SEPARATOR}'
66-
# appInstance.documentationFolder = swaggerUi._static_folder
6766
appInstance.register_blueprint(swaggerUi, url_prefix=documentationUrl)
6867
OpenApiDocumentationFile.overrideDocumentation(apiInstance)
6968

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

0 commit comments

Comments
 (0)