mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 20:56:46 +00:00
parent
ff4211958a
commit
4b166f90bc
@ -104,16 +104,6 @@ class API(object):
|
||||
response = self.call('PUT', url, payload)
|
||||
return self.handle_response(response)
|
||||
|
||||
def patch(self, urlpath, payload):
|
||||
"""
|
||||
Puts data on given urlpath with given payload
|
||||
|
||||
Convenience call which uses API_ROOT from settings
|
||||
"""
|
||||
url = settings.API_ROOT + urlpath
|
||||
response = self.call('PATCH', url, payload)
|
||||
return self.handle_response(response)
|
||||
|
||||
def handle_response_404(self, response, prefix):
|
||||
# Stripping HTML body ...
|
||||
if response.text.find('body'):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user