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-preview.2 update #10805

Merged
merged 32 commits into from
Jan 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ccbf217
Initial update for .preview.2 release.
Sep 16, 2020
8345673
Standardized Errors, sample list.
Sep 16, 2020
04bcbe7
removing from master from now as this is just a proposal
Sep 16, 2020
e3f8825
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Sep 20, 2020
7a0672f
Add support for preview.3
Sep 20, 2020
8d5d70d
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Sep 23, 2020
aa93ba9
Adding appearance property to ReadResult.
Sep 23, 2020
17c7775
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Sep 24, 2020
08d044c
Incorporate review feedback.
Sep 24, 2020
f71814b
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Oct 5, 2020
102d02b
Update swagger
Oct 14, 2020
e590a97
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Oct 14, 2020
27475aa
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Oct 26, 2020
2502426
Updating page range parameter for layout API.
Oct 26, 2020
af6593d
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Nov 1, 2020
de3b025
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Nov 2, 2020
c4af74b
Adding .bmp, language support, table bounding box.
Nov 2, 2020
7a9bd65
Refactoring Locale parameter.
Nov 2, 2020
e8140d7
Refactor language parameter.
Nov 2, 2020
6fb824e
Ran prettier.
Nov 2, 2020
857b404
Spell check fix.
Nov 2, 2020
dd637e2
Update to add preview.2 swagger.
Nov 2, 2020
c664c07
Update specification/cognitiveservices/data-plane/FormRecognizer/prev…
ramparab Nov 3, 2020
5679fdf
Update specification/cognitiveservices/data-plane/FormRecognizer/prev…
ramparab Nov 3, 2020
7f99928
Incorporate review feedback.
Nov 3, 2020
0b25a6b
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Nov 3, 2020
d502d31
Merge branch 'FRv21UpdatePreview2' of https://github.com/ramparab/azu…
Nov 3, 2020
a1ba624
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Nov 10, 2020
97ae149
Incorporating review feedback.
Nov 10, 2020
97a86cd
Merge branch 'master' of https://github.com/ramparab/azure-rest-api-s…
Jan 11, 2021
a3f42f3
Merge branch 'master' of https://github.com/azure/azure-rest-api-spec…
Jan 11, 2021
cba165e
Adding language to ReadResult - Japan
Jan 11, 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.2/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",
"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.2/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.2/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
}
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/v2.1-preview.2/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.2/custom/models/{modelId}"
},
"body": {
"modelId": "{modelId}",
"accessToken": "{accessToken}",
"expirationDateTimeTicks": 637190189980000000
}
}
}
}
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.2/prebuilt/invoice/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