diff --git a/CHANGELOG.md b/CHANGELOG.md index 21438e3..de2782d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ Given a version number MAJOR.MINOR.PATCH, increment: - request methods ### Changed - core version +### Fixed +- request prefix param ## [2.25.1] - 2024-04-01 ### Fixed diff --git a/starkbank/__init__.py b/starkbank/__init__.py index d070873..2567703 100644 --- a/starkbank/__init__.py +++ b/starkbank/__init__.py @@ -3,6 +3,7 @@ user = None language = "en-US" timeout = 15 +request_methods_prefix = "Joker" from starkcore import Organization, Project diff --git a/starkbank/request/__request.py b/starkbank/request/__request.py index 22fa28f..f4f1630 100644 --- a/starkbank/request/__request.py +++ b/starkbank/request/__request.py @@ -1,4 +1,5 @@ from ..utils import rest +from starkbank import request_methods_prefix def get(path, query=None, user=None): @@ -16,7 +17,8 @@ def get(path, query=None, user=None): return rest.get_raw( path=path, query=query, - user=user + user=user, + prefix=request_methods_prefix ) @@ -37,7 +39,8 @@ def post(path, body=None, query=None, user=None): path=path, payload=body, query=query, - user=user + user=user, + prefix=request_methods_prefix ) @@ -56,7 +59,8 @@ def patch(path, body=None, user=None): return rest.patch_raw( path=path, payload=body, - user=user + user=user, + prefix=request_methods_prefix ) @@ -76,7 +80,8 @@ def put(path, body=None, user=None): return rest.put_raw( path=path, payload=body, - user=user + user=user, + prefix=request_methods_prefix ) @@ -96,5 +101,6 @@ def delete(path, body=None, user=None): return rest.delete_raw( path=path, payload=body, - user=user + user=user, + prefix=request_methods_prefix )