-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swagger for Form Recognizer 2021-09-30-preview. (#16234)
* Swagger for Form Recognizer 2021-09-30-preview. * Fix styling issues. * Fix styling. * Remove yml version.
- Loading branch information
Showing
16 changed files
with
9,610 additions
and
0 deletions.
There are no files selected for viewing
1,941 changes: 1,941 additions & 0 deletions
1,941
...ognitiveservices/data-plane/FormRecognizer/preview/2021-09-30-preview/FormRecognizer.json
Large diffs are not rendered by default.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...data-plane/FormRecognizer/preview/2021-09-30-preview/examples/AnalyzeDocument_Base64.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...es/data-plane/FormRecognizer/preview/2021-09-30-preview/examples/AnalyzeDocument_Url.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...-plane/FormRecognizer/preview/2021-09-30-preview/examples/AuthorizeCopyDocumentModel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ces/data-plane/FormRecognizer/preview/2021-09-30-preview/examples/BuildDocumentModel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...s/data-plane/FormRecognizer/preview/2021-09-30-preview/examples/ComposeDocumentModel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...es/data-plane/FormRecognizer/preview/2021-09-30-preview/examples/CopyDocumentModelTo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...veservices/data-plane/FormRecognizer/preview/2021-09-30-preview/examples/DeleteModel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"api-version": "{apiVersion}", | ||
"modelId": "{modelId}" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.