-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Cognitive Services Form Recognizer v2.0-preview: Copy APIs #8349
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
187edee
Update FormRecognizer v2.0-preview spec with new operations 'CopyCust…
krishnand affb869
Add claimResourceRegion. Remove move option from Copy data contract b…
krishnand 0cd19cb
Address PR comments
krishnand 608865c
Remove authorizationClaim from CopyRequest contract. Updated referenc…
krishnand 131a4e9
Fixed typo in CopyRequest required attribute
krishnand 17e7cef
Add AuthorizationClaim contract and include it with CopyRequest
krishnand 3bf751f
AuthorizationClaim - typo in required attrib
krishnand 7c44a2a
Rename AuthorizationClaim to Authorization
krishnand df47f58
Rename modelResourceId to modelId in the 'Authorization' contract. Fi…
krishnand df79efd
Adding source query string parameter to the POST copy request
krishnand 0ea6232
Set 'application/json' consumes option for POST copy
krishnand 4e1f391
Introduce models/copyAuthorization route. Added sample for the new ro…
krishnand 02e46e3
Change expirationDateTime to expirationDateTimeTicks in the CopyAutho…
krishnand 725dd73
Remove enum reference for targetResourceRegion. Update to a loose pat…
krishnand e8b2604
Address ModelValidation and Sample validation errors
krishnand a1eb575
Fix copy samples JSON validation issues
krishnand af0cf01
Run prettier on FormRecognizer.json swagger and example files
krishnand c191d80
Add sample for COpy operation result with errors. Fix description for…
krishnand 020ab6a
Prettier fix for CopyOperationResultWithErrors.json
krishnand 2a56797
Add LRO annotation to copy API
krishnand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
23 changes: 23 additions & 0 deletions
23
...fication/cognitiveservices/data-plane/FormRecognizer/preview/v2.0/examples/CopyModel.json
This file contains hidden or 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,23 @@ | ||
| { | ||
|
krishnand marked this conversation as resolved.
|
||
| "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}", | ||
|
krishnand marked this conversation as resolved.
|
||
| "targetResourceRegion": "{region}", | ||
|
krishnand marked this conversation as resolved.
Outdated
|
||
| "authorization": { | ||
| "modelId": "{modelId}" | ||
| } | ||
|
krishnand marked this conversation as resolved.
|
||
| } | ||
| }, | ||
| "responses": { | ||
| "202": { | ||
| "headers": { | ||
| "Operation-Location": "{endpoint}/formrecognizer/v2.0-preview/custom/models/{modelId}/copyResults/{resultId}" | ||
|
krishnand marked this conversation as resolved.
|
||
| } | ||
| } | ||
| } | ||
| } | ||
23 changes: 23 additions & 0 deletions
23
...ognitiveservices/data-plane/FormRecognizer/preview/v2.0/examples/CopyOperationResult.json
This file contains hidden or 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,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}", | ||
|
krishnand marked this conversation as resolved.
|
||
| "errors": [] | ||
|
krishnand marked this conversation as resolved.
|
||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.