Skip to content

Commit

Permalink
Swagger for Form Recognizer 2021-09-30-preview. (#16234)
Browse files Browse the repository at this point in the history
* Swagger for Form Recognizer 2021-09-30-preview.

* Fix styling issues.

* Fix styling.

* Remove yml version.
  • Loading branch information
bojunehsu authored Oct 12, 2021
1 parent cac5414 commit 5591f02
Show file tree
Hide file tree
Showing 16 changed files with 9,610 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "{apiVersion}",
"modelId": "prebuilt-layout",
"pages": "1-2,4",
"locale": "en-US",
"stringIndexType": "textElements",
"analyzeRequest": {
"base64Source": "{base64EncodedPdf}"
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/documentModels/prebuilt-layout/analyzeResults/{resultId}?api-version={apiVersion}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "{apiVersion}",
"modelId": "customModel",
"pages": "1-2,4",
"locale": "en-US",
"stringIndexType": "textElements",
"analyzeRequest": {
"urlSource": "http://host.com/doc.pdf"
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/documentModels/customModel/analyzeResults/{resultId}?api-version={apiVersion}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "{apiVersion}",
"authorizeCopyRequest": {
"modelId": "{targetModelId}",
"description": "{targetModelDescription}"
}
},
"responses": {
"200": {
"body": {
"targetResourceId": "{targetResourceId}",
"targetResourceRegion": "{targetResourceRegion}",
"targetModelId": "{targetModelId}",
"targetModelLocation": "{targetEndpoint}/formrecognizer/documentModels/{targetModelId}?api-version={apiVersion}",
"accessToken": "{accessToken}",
"expirationDateTime": "2021-09-23T09:12:54.552Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "{apiVersion}",
"buildRequest": {
"modelId": "{modelId}",
"description": "{modelDescription}",
"azureBlobSource": {
"containerUrl": "https://{storageAccount}.blob.core.windows.net/{containerName}?{sasToken}",
"prefix": "{blobNamePrefix}"
}
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/operations/{operationId}?api-version={apiVersion}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "{apiVersion}",
"composeRequest": {
"modelId": "{composedModelId}",
"description": "{composedModelDescription}",
"componentModels": [
{
"modelId": "{modelId1}"
},
{
"modelId": "{modelId2}"
}
]
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/operations/{operationId}?api-version={apiVersion}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "{apiVersion}",
"modelId": "sourceModel",
"copyToRequest": {
"targetResourceId": "{targetResourceId}",
"targetResourceRegion": "{targetResourceRegion}",
"targetModelId": "targetModel",
"targetModelLocation": "{targetEndpoint}/formrecognizer/documentModels/targetModel?api-version={apiVersion}",
"accessToken": "{accessToken}",
"expirationDateTime": "2021-09-23T09:12:54.552Z"
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/formrecognizer/operations/{operationId}?api-version={apiVersion}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"endpoint": "{endpoint}",
"api-version": "{apiVersion}",
"modelId": "{modelId}"
},
"responses": {
"204": {}
}
}
Loading

0 comments on commit 5591f02

Please sign in to comment.