Generic web API should accept data
kwarg for PATCH
This commit is contained in:
parent
493c32492c
commit
76df34cf72
|
@ -100,11 +100,11 @@ class GenericWebAPI:
|
||||||
"""
|
"""
|
||||||
return self._request('POST', api_method, params=params, data=data)
|
return self._request('POST', api_method, params=params, data=data)
|
||||||
|
|
||||||
def patch(self, api_method, params=None):
|
def patch(self, api_method, params=None, data=None):
|
||||||
"""
|
"""
|
||||||
Perform a PATCH request for the given API method, and return the response.
|
Perform a PATCH request for the given API method, and return the response.
|
||||||
"""
|
"""
|
||||||
return self._request('PATCH', api_method, params=params)
|
return self._request('PATCH', api_method, params=params, data=data)
|
||||||
|
|
||||||
def delete(self, api_method, params=None):
|
def delete(self, api_method, params=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue