You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "madeirak (via GitHub)" <gi...@apache.org> on 2023/12/12 10:10:05 UTC
Re: [PR] [DOC] Add REST API doc for POST /batches with uploading resource [kyuubi]
madeirak commented on PR #4199:
URL: https://github.com/apache/kyuubi/pull/4199#issuecomment-1851729433
@bowenliang123
hi, I encountered some issues while using this feature, like below , how can I obtain the correct response, thx! :)

my usage is like the following, using Python
```
headers = {"Content-Type": "application/json"}
data = {
'batchRequest': param # param conforms to the JSON structure and contains data of batchRequest
}
files = {
"resourceFile": open(script_path, 'r')
}
response = requests.post(
url, headers=headers, data=data, files=files
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org