Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRv2.1 preview3 update #12997

Merged
merged 27 commits into from
Mar 30, 2021
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8345673
Standardized Errors, sample list.
Sep 16, 2020
04bcbe7
removing from master from now as this is just a proposal
Sep 16, 2020
81ea565
Merge branch 'master' of https://github.com/azure/azure-rest-api-specs
Jan 15, 2021
7678fd0
add table bounding box.
Feb 16, 2021
9094d26
Fixing Appearance property for TextLine.
Feb 16, 2021
7af4bb0
Incorporating review feedback.
Feb 17, 2021
7e3a569
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Feb 17, 2021
799e38d
Add ID examples.
Feb 17, 2021
a6903b6
Add optional ReadingOrder parameter.
Feb 17, 2021
8a239ca
Fix layout api to language parameter, other minor fixes.
Feb 17, 2021
65f9a3d
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Feb 17, 2021
2cf9e19
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Feb 18, 2021
064af3a
Incorporating review feedback.
Feb 18, 2021
a2b1391
Incorporating review feedback.
Feb 18, 2021
ec2b844
Updating fileStream parameter to add .bmp file type.
Feb 18, 2021
dd93b06
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Feb 22, 2021
c7c9baf
Incorportating review feedback.
Feb 22, 2021
9934c33
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Mar 15, 2021
f62b22c
Fixing build errors.
Mar 15, 2021
58a20b0
Prettyfied json swagger.
Mar 15, 2021
33332ca
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Mar 26, 2021
a9adb75
Incorporate review feedback.
Mar 26, 2021
ae951f5
Fix swagger verification issues.
Mar 26, 2021
2e84a56
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Mar 26, 2021
36cc0df
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Mar 30, 2021
231147d
Incorporating review feedback.
Mar 30, 2021
f01bba8
Incorporating review feedback.
Mar 30, 2021
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"modelId": "{modelId}",
"body": {}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/v2.1-preview.3/custom/models/{modelId}/analyzeResults/{resultId}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"modelId": "{modelId}",
"resultId": "{result Id}",
"body": {}
},
"responses": {
"200": {
"body": {
"status": "running",
"createdDateTime": "2019-05-01T10:53:21Z",
"lastUpdatedDateTime": "2019-05-01T10:53:23Z",
"analyzeResult": {
"version": "v2.1",
sandeepparab marked this conversation as resolved.
Show resolved Hide resolved
"readResults": [],
"pageResults": [],
"documentResults": [],
"errors": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"body": {
"source": "http://www.example.com/image.jpg"
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/v2.1-preview.3/prebuilt/businessCard/analyzeResults/{resultId}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"resultId": "{result Id}",
"body": {}
},
"responses": {
"200": {
"body": {
"status": "running",
"createdDateTime": "2019-05-01T10:53:21Z",
"lastUpdatedDateTime": "2019-05-01T10:53:23Z",
"analyzeResult": {
"version": "v2.1",
"readResults": [],
"pageResults": [],
"documentResults": [],
"errors": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"body": {},
"composeRequest": {
"modelIds": [
"4afb20d6-3ed0-4cde-ba40-dbd6207268dd",
"6f841356-aa32-42c9-a739-2182c47b79c9"
]
}
},
"responses": {
"201": {
"headers": {
"Location": "{endpoint}/formrecognizer/v2.1-preview.3/custom/models/{modelId}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"modelId": "{modelId}",
"body": {},
"copyRequest": {
"targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{resourceName}",
"targetResourceRegion": "westus2",
"copyAuthorization": {
"modelId": "{modelId}",
"accessToken": "{accessToken}",
"expirationDateTimeTicks": 637190189980000000
sandeepparab marked this conversation as resolved.
Show resolved Hide resolved
}
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/v2.1-preview.3/custom/models/{modelId}/copyResults/{resultId}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"body": {}
},
"responses": {
"201": {
"headers": {
"Location": "{endpoint}/formrecognizer/v2.1-preview.3/custom/models/{modelId}"
},
"body": {
"modelId": "{modelId}",
"accessToken": "{accessToken}",
"expirationDateTimeTicks": 637190189980000000
sandeepparab marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"modelId": "{modelId}",
"resultId": "{resultId}",
"body": {}
},
"responses": {
"200": {
"body": {
"status": "succeeded",
"createdDateTime": "2020-01-01T00:00:00Z",
"lastUpdatedDateTime": "2020-01-01T00:01:00Z",
"copyResult": {
"modelId": "{modelId}",
"errors": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"modelId": "{modelId}",
"resultId": "{resultId}",
"body": {}
},
"responses": {
"200": {
"body": {
"status": "failed",
"createdDateTime": "2020-01-01T00:00:00Z",
"lastUpdatedDateTime": "2020-01-01T00:01:00Z",
"copyResult": {
"modelId": "{modelId}",
"errors": [
{
"code": "ResourceResolverError",
"message": "{ErrorMessage}"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"modelId": "{modelId}",
"body": {}
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"modelId": "{modelId}",
"body": {}
},
"responses": {
"200": {
"body": {
"modelInfo": {
"modelId": "f973e3c1-1148-43bb-bea8-49d0603ab3a8",
"modelName": "my composed model",
"status": "ready",
"createdDateTime": "2019-05-01T10:53:21Z",
"lastUpdatedDateTime": "2019-05-01T10:53:23Z",
"attributes": {
"isComposed": true
}
},
"keys": {
"clusters": {
"0": [
"Invoice",
"123112313"
],
"1": [
"Please remit payment to:",
"Microsoft"
]
}
},
"trainResult": {
"trainingDocuments": [],
"fields": [],
"averageModelAccuracy": 0,
"errors": []
},
"composedTrainResults": [
{
"modelId": "4afb20d6-3ed0-4cde-ba40-dbd6207268dd",
"trainingDocuments": [],
"fields": [],
"averageModelAccuracy": 0,
"errors": []
},
{
"modelId": "6f841356-aa32-42c9-a739-2182c47b79c9",
"trainingDocuments": [],
"fields": [],
"averageModelAccuracy": 0,
"errors": []
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"op": "full",
"body": {}
},
"responses": {
"200": {
"body": {
"summary": {
"count": 2,
"limit": 5000,
"lastUpdatedDateTime": "2019-05-01T10:53:21Z"
},
"modelList": [
{
"modelId": "f973e3c1-1148-43bb-bea8-49d0603ab3a8",
"modelName": "test model 1",
"status": "ready",
"createdDateTime": "2019-05-01T10:53:21Z",
"lastUpdatedDateTime": "2019-05-01T10:53:23Z",
"attributes": {
"isComposed": false
}
},
{
"modelId": "f973e3c1-0001-43bb-bea8-49d0603ab3a8",
"modelName": "test model 2",
"status": "ready",
"createdDateTime": "2019-05-01T10:53:21Z",
"lastUpdatedDateTime": "2019-05-01T10:53:23Z",
"attributes": {
"isComposed": true
}
}
],
"nextLink": ""
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"op": "summary",
"body": {}
},
"responses": {
"200": {
"body": {
"summary": {
"count": 5,
"limit": 5000,
"lastUpdatedDateTime": "2019-05-01T10:53:21Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "{API key}",
"body": {}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/v2.1-preview.3/prebuilt/id/analyzeResults/{resultId}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"endpoint": "{endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"resultId": "{result Id}",
"body": {}
},
"responses": {
"200": {
"body": {
"status": "running",
"createdDateTime": "2019-05-01T10:53:21Z",
"lastUpdatedDateTime": "2019-05-01T10:53:23Z",
"analyzeResult": {
"version": "v2.1",
"readResults": [],
"pageResults": [],
"documentResults": [],
"errors": []
}
}
}
}
}
Loading