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

Method post

document_qa/ner_client_generic.py:181–193  ·  view source on GitHub ↗

Call the API with a POST 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

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.
183
184 Args:
185 url (str): Resource location relative to the base URL.
186 params (dict or None): Query-string parameters.
187 data (dict or None): Request body contents.
188 files (dict or None: Files to be passed to the request.
189
190 Returns:
191 An instance of ResultParser or ErrorParser.
192 """
193 return self.call_api(method="POST", url=url, params=params, data=data, files=files, **kwargs)
194
195 def service_status(self, **kwargs):
196 """Call the API to get the status of the service.

Callers 4

embedMethod · 0.80
process_textsMethod · 0.80
process_textMethod · 0.80
process_pdfMethod · 0.80

Calls 1

call_apiMethod · 0.95

Tested by

no test coverage detected