Skip to content

Commit 6e88964

Browse files
committed
new release
1 parent 9cf7924 commit 6e88964

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎python_framework/api/src/service/flask/ResourceManager.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,4 @@ def addFlaskApiResources(
220220
addHelperListTo(apiInstance, helperList)
221221
addConverterListTo(apiInstance, converterList)
222222
Security.addJwt(jwtInstance)
223-
OpenApiManager.addSwagger(appInstance, apiInstance)
223+
OpenApiManager.addSwagger(apiInstance, appInstance)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
def getDocumentationFilePath(apiInstance):
1010
# return f'{g.apiPath}api{g.OS_SEPARATOR}resource{g.OS_SEPARATOR}swaggerui{g.OS_SEPARATOR}swagger.json'
11-
return f'{apiInstance.documentationFolder}{g.OS_SEPARATOR}swagger.json'
11+
return f'{apiInstance.documentationFolder}{g.OS_SEPARATOR}{DOCUMENTATION_FILE}'
1212

1313
def loadDocumentationAsString(apiInstance):
1414
documentationFilePath = getDocumentationFilePath(apiInstance)
@@ -22,7 +22,7 @@ def loadDocumentation(apiInstance):
2222

2323
def overrideDocumentation(apiInstance):
2424
globals = apiInstance.globals
25-
documentationAsString = StringHelper.stringfyThisDictionary(documentation)
25+
documentationAsString = StringHelper.stringfyThisDictionary(apiInstance.documentation)
2626
documentationFilePath = getDocumentationFilePath(apiInstance)
2727
with open(documentationFilePath, globals.OVERRIDE, encoding=globals.ENCODING) as documentationFile :
2828
documentationFile.write(documentationAsString)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
KW_REQUEST = '__KW_REQUEST__'
6060
KW_RESPONSE = '__KW_RESPONSE__'
6161

62-
def addSwagger(appInstance, apiInstance):
62+
def addSwagger(apiInstance, appInstance):
6363
globals = apiInstance.globals
6464
documentationUrl = f'{apiInstance.baseUrl}{OPEN_API_URL}'
6565
swaggerUi = get_swaggerui_blueprint(

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

0 commit comments

Comments
 (0)