Skip to content

Commit d37e490

Browse files
bojunehsuFredericHeem
authored andcommitted
Add FormRecognizer 2022-01-30-preview. (Azure#17543)
1 parent 16169ff commit d37e490

16 files changed

+9698
-0
lines changed

specification/cognitiveservices/data-plane/FormRecognizer/preview/2022-01-30-preview/FormRecognizer.json

Lines changed: 2059 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"endpoint": "{endpoint}",
4+
"api-version": "{apiVersion}",
5+
"modelId": "prebuilt-layout",
6+
"pages": "1-2,4",
7+
"locale": "en-US",
8+
"stringIndexType": "textElements",
9+
"analyzeRequest": {
10+
"base64Source": "{base64EncodedPdf}"
11+
}
12+
},
13+
"responses": {
14+
"202": {
15+
"headers": {
16+
"Operation-Location": "{endpoint}/formrecognizer/documentModels/prebuilt-layout/analyzeResults/{resultId}?api-version={apiVersion}"
17+
}
18+
}
19+
}
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"endpoint": "{endpoint}",
4+
"api-version": "{apiVersion}",
5+
"modelId": "customModel",
6+
"pages": "1-2,4",
7+
"locale": "en-US",
8+
"stringIndexType": "textElements",
9+
"analyzeRequest": {
10+
"urlSource": "http://host.com/doc.pdf"
11+
}
12+
},
13+
"responses": {
14+
"202": {
15+
"headers": {
16+
"Operation-Location": "{endpoint}/formrecognizer/documentModels/customModel/analyzeResults/{resultId}?api-version={apiVersion}"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"endpoint": "{endpoint}",
4+
"api-version": "{apiVersion}",
5+
"authorizeCopyRequest": {
6+
"modelId": "{targetModelId}",
7+
"description": "{targetModelDescription}"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"targetResourceId": "{targetResourceId}",
14+
"targetResourceRegion": "{targetResourceRegion}",
15+
"targetModelId": "{targetModelId}",
16+
"targetModelLocation": "{targetEndpoint}/formrecognizer/documentModels/{targetModelId}?api-version={apiVersion}",
17+
"accessToken": "{accessToken}",
18+
"expirationDateTime": "2021-09-23T09:12:54.552Z"
19+
}
20+
}
21+
}
22+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"endpoint": "{endpoint}",
4+
"api-version": "{apiVersion}",
5+
"buildRequest": {
6+
"modelId": "{modelId}",
7+
"description": "{modelDescription}",
8+
"buildMode": "template",
9+
"azureBlobSource": {
10+
"containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken",
11+
"prefix": "{blobNamePrefix}"
12+
},
13+
"tags": {
14+
"createdBy": "{userId}"
15+
}
16+
}
17+
},
18+
"responses": {
19+
"202": {
20+
"headers": {
21+
"Operation-Location": "{endpoint}/formrecognizer/operations/{operationId}?api-version={apiVersion}"
22+
}
23+
}
24+
}
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"endpoint": "{endpoint}",
4+
"api-version": "{apiVersion}",
5+
"composeRequest": {
6+
"modelId": "{composedModelId}",
7+
"description": "{composedModelDescription}",
8+
"componentModels": [
9+
{
10+
"modelId": "{modelId1}"
11+
},
12+
{
13+
"modelId": "{modelId2}"
14+
}
15+
]
16+
}
17+
},
18+
"responses": {
19+
"202": {
20+
"headers": {
21+
"Operation-Location": "{endpoint}/formrecognizer/operations/{operationId}?api-version={apiVersion}"
22+
}
23+
}
24+
}
25+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"endpoint": "{endpoint}",
4+
"api-version": "{apiVersion}",
5+
"modelId": "sourceModel",
6+
"copyToRequest": {
7+
"targetResourceId": "{targetResourceId}",
8+
"targetResourceRegion": "{targetResourceRegion}",
9+
"targetModelId": "targetModel",
10+
"targetModelLocation": "{targetEndpoint}/formrecognizer/documentModels/targetModel?api-version={apiVersion}",
11+
"accessToken": "{accessToken}",
12+
"expirationDateTime": "2021-09-23T09:12:54.552Z"
13+
}
14+
},
15+
"responses": {
16+
"202": {
17+
"headers": {
18+
"Operation-Location": "{endpoint}/formrecognizer/operations/{operationId}?api-version={apiVersion}"
19+
}
20+
}
21+
}
22+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"endpoint": "{endpoint}",
4+
"api-version": "{apiVersion}",
5+
"modelId": "{modelId}"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}

0 commit comments

Comments
 (0)