Skip to content

Commit

Permalink
Fix request param prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
leoKagohara-Stark committed Jun 10, 2024
1 parent 3a6ff39 commit c4ed1e2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
starkcore==0.3.2
starkcore==0.3.3
1 change: 1 addition & 0 deletions starkbank/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
user = None
language = "en-US"
timeout = 15
request_methods_prefix = "Joker"

from starkcore import Organization, Project

Expand Down
16 changes: 11 additions & 5 deletions starkbank/request/__request.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ..utils import rest
from starkbank import request_methods_prefix


def get(path, query=None, user=None):
Expand All @@ -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
)


Expand All @@ -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
)


Expand All @@ -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
)


Expand All @@ -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
)


Expand All @@ -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
)

0 comments on commit c4ed1e2

Please sign in to comment.