BB: Add put_json()

This commit is contained in:
Mike Salvatore 2022-08-05 09:20:52 -04:00
parent d30c2df0c8
commit 4cb6bdd9cf
1 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,12 @@ class MonkeyIslandRequests(object):
self.addr + url, data=data, headers=self.get_jwt_header(), verify=False
)
@_Decorators.refresh_jwt_token
def put_json(self, url, json: Dict):
return requests.put( # noqa: DUO123
self.addr + url, json=json, headers=self.get_jwt_header(), verify=False
)
@_Decorators.refresh_jwt_token
def post_json(self, url, json: Dict):
return requests.post( # noqa: DUO123