import requests
url = "https://{FUSION HOST}/api/parsers/{id}/parse"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"offset\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"limit\"\r\n\r\n123\r\n-----011000010111000001101001--"
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "multipart/form-data; boundary=---011000010111000001101001"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"diagnostics": [
{
"cause": "<string>",
"code": 123,
"diagnosticId": "<string>",
"filter": "<string>",
"parserStageId": "<string>",
"parserStageType": "<string>",
"result": true
}
],
"documents": [
{
"id": "<string>",
"fields": [
{
"name": "<string>",
"value": {},
"metadata": {},
"annotations": [
{
"type": "<string>",
"start": 123,
"end": 123,
"features": {},
"label": "<string>",
"featureCount": 123
}
]
}
],
"metadata": {},
"commands": [
{
"name": "<string>",
"params": {}
}
],
"hints": {}
}
],
"errors": [
{
"context": {},
"message": "<string>"
}
],
"parsedStreams": 123,
"totalDocuments": 123,
"totalTimeMs": 123
}import requests
url = "https://{FUSION HOST}/api/parsers/{id}/parse"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"offset\"\r\n\r\n123\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"limit\"\r\n\r\n123\r\n-----011000010111000001101001--"
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "multipart/form-data; boundary=---011000010111000001101001"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"diagnostics": [
{
"cause": "<string>",
"code": 123,
"diagnosticId": "<string>",
"filter": "<string>",
"parserStageId": "<string>",
"parserStageType": "<string>",
"result": true
}
],
"documents": [
{
"id": "<string>",
"fields": [
{
"name": "<string>",
"value": {},
"metadata": {},
"annotations": [
{
"type": "<string>",
"start": 123,
"end": 123,
"features": {},
"label": "<string>",
"featureCount": 123
}
]
}
],
"metadata": {},
"commands": [
{
"name": "<string>",
"params": {}
}
],
"hints": {}
}
],
"errors": [
{
"context": {},
"message": "<string>"
}
],
"parsedStreams": 123,
"totalDocuments": 123,
"totalTimeMs": 123
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Id of the parser to be used.
OK
Show child attributes
The unique document ID.
The field present in the indexed document.
Show child attributes
Pipeline field annotations.
Show child attributes
Was this page helpful?