MCPcopy Create free account
hub / github.com/ScienciaLAB/document-qa / put

Method put

document_qa/ner_client_generic.py:167–179  ·  view source on GitHub ↗

Call the API with a PUT request. Args: url (str): Resource location relative to the base URL. params (dict or None): Query-string parameters. data (dict or None): Request body contents. files (dict or None: Files to be passed to the request.

(self, url, params=None, data=None, files=None, **kwargs)

Source from the content-addressed store, hash-verified

165 return self.call_api("DELETE", url, params=params, **kwargs)
166
167 def put(self, url, params=None, data=None, files=None, **kwargs):
168 """Call the API with a PUT request.
169
170 Args:
171 url (str): Resource location relative to the base URL.
172 params (dict or None): Query-string parameters.
173 data (dict or None): Request body contents.
174 files (dict or None: Files to be passed to the request.
175
176 Returns:
177 An instance of ResultParser or ErrorParser.
178 """
179 return self.call_api("PUT", url, params=params, data=data, files=files, **kwargs)
180
181 def post(self, url, params=None, data=None, files=None, **kwargs):
182 """Call the API with a POST request.

Callers

nothing calls this directly

Calls 1

call_apiMethod · 0.95

Tested by

no test coverage detected