Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
{
"Entries": [
{
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels:build?api-version=2022-06-30-preview",
"RequestMethod": "POST",
"RequestHeaders": {
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Content-Length": "131",
"Content-Type": "application/json",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b6 Python/3.8.5 (Windows-10-10.0.19041-SP0)"
},
"RequestBody": {
"modelId": "025bc9bc-5bb9-47f2-a47b-577866b8a6ea",
"buildMode": "template",
"azureBlobSource": {
"containerUrl": "https://blob_sas_url"
}
},
"StatusCode": 202,
"ResponseHeaders": {
"apim-request-id": "b0ebf4e3-7934-4759-ba31-6fbca02f772f",
"Content-Length": "0",
"Date": "Tue, 21 Jun 2022 00:28:51 GMT",
"operation-location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/operations/31510596670_b0ebf4e3-7934-4759-ba31-6fbca02f772f?api-version=2022-06-30-preview",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "958"
},
"ResponseBody": null
},
{
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/operations/31510596670_b0ebf4e3-7934-4759-ba31-6fbca02f772f?api-version=2022-06-30-preview",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b6 Python/3.8.5 (Windows-10-10.0.19041-SP0)"
},
"RequestBody": null,
"StatusCode": 200,
"ResponseHeaders": {
"apim-request-id": "2e894fe9-69a6-4232-a1c9-41feb4d52bac",
"Content-Type": "application/json; charset=utf-8",
"Date": "Tue, 21 Jun 2022 00:28:56 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"Transfer-Encoding": "chunked",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "64"
},
"ResponseBody": {
"operationId": "31510596670_b0ebf4e3-7934-4759-ba31-6fbca02f772f",
"kind": "documentModelBuild",
"status": "succeeded",
"createdDateTime": "2022-06-21T00:28:50Z",
"lastUpdatedDateTime": "2022-06-21T00:28:53Z",
"resourceLocation": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/025bc9bc-5bb9-47f2-a47b-577866b8a6ea?api-version=2022-06-30-preview",
"percentCompleted": 100,
"result": {
"docTypes": {
"025bc9bc-5bb9-47f2-a47b-577866b8a6ea": {
"fieldSchema": {
"Merchant": {
"type": "string"
},
"PhoneNumber": {
"type": "string"
},
"Website": {
"type": "string"
},
"Email": {
"type": "string"
},
"PurchaseOrderNumber": {
"type": "string"
},
"DatedAs": {
"type": "string"
},
"VendorName": {
"type": "string"
},
"CompanyName": {
"type": "string"
},
"CompanyAddress": {
"type": "string"
},
"CompanyPhoneNumber": {
"type": "string"
},
"Subtotal": {
"type": "string"
},
"Tax": {
"type": "string"
},
"Total": {
"type": "string"
},
"Signature": {
"type": "string"
},
"Quantity": {
"type": "number"
},
"FullSignature": {
"type": "signature"
}
},
"buildMode": "template",
"fieldConfidence": {
"CompanyAddress": 0.8,
"CompanyName": 0.995,
"CompanyPhoneNumber": 0.995,
"DatedAs": 0.995,
"Email": 0.8,
"FullSignature": 0.6,
"Merchant": 0.995,
"PhoneNumber": 0.995,
"PurchaseOrderNumber": 0.995,
"Quantity": 0.995,
"Signature": 0.995,
"Subtotal": 0.995,
"Tax": 0.995,
"Total": 0.995,
"VendorName": 0.995,
"Website": 0.995
}
}
},
"modelId": "025bc9bc-5bb9-47f2-a47b-577866b8a6ea",
"createdDateTime": "2022-06-21T00:28:53Z",
"apiVersion": "2022-06-30-preview"
}
}
},
{
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels:authorizeCopy?api-version=2022-06-30-preview",
"RequestMethod": "POST",
"RequestHeaders": {
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Content-Length": "51",
"Content-Type": "application/json",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b6 Python/3.8.5 (Windows-10-10.0.19041-SP0)"
},
"RequestBody": {
"modelId": "9d0452e6-b056-498d-803a-682a206c8530"
},
"StatusCode": 200,
"ResponseHeaders": {
"apim-request-id": "cc1fe18c-be9d-48b0-a900-e03ea7dc9ca2",
"Content-Type": "application/json; charset=utf-8",
"Date": "Tue, 21 Jun 2022 00:28:56 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"Transfer-Encoding": "chunked",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "49"
},
"ResponseBody": {
"targetResourceId": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/caperal-dev/providers/Microsoft.CognitiveServices/accounts/caperalfrwestus2",
"targetResourceRegion": "westus2",
"targetModelId": "9d0452e6-b056-498d-803a-682a206c8530",
"targetModelLocation": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/9d0452e6-b056-498d-803a-682a206c8530?api-version=2022-06-30-preview",
"accessToken": "redacted",
"expirationDateTime": "2022-06-21T01:28:56Z"
}
},
{
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/00000000-0000-0000-0000-000000000000:copyTo?api-version=2022-06-30-preview",
"RequestMethod": "POST",
"RequestHeaders": {
"Accept": "application/json",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Content-Length": "497",
"Content-Type": "application/json",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b6 Python/3.8.5 (Windows-10-10.0.19041-SP0)"
},
"RequestBody": {
"targetResourceId": "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/caperal-dev/providers/Microsoft.CognitiveServices/accounts/caperalfrwestus2",
"targetResourceRegion": "westus2",
"targetModelId": "9d0452e6-b056-498d-803a-682a206c8530",
"targetModelLocation": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/9d0452e6-b056-498d-803a-682a206c8530?api-version=2022-06-30-preview",
"accessToken": "redacted",
"expirationDateTime": "2022-06-21T01:28:56.000Z"
},
"StatusCode": 404,
"ResponseHeaders": {
"apim-request-id": "39548882-d914-4ea4-ae4f-80c333110e86",
"Content-Type": "application/json",
"Date": "Tue, 21 Jun 2022 00:28:56 GMT",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"Transfer-Encoding": "chunked",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "42"
},
"ResponseBody": {
"error": {
"code": "NotFound",
"message": "Resource not found.",
"innererror": {
"code": "ModelNotFound",
"message": "The requested model was not found."
}
}
}
}
],
"Variables": {}
}
Loading