-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[formrecognizer] Add Identity Documents APIs (#17128)
* Adding ID docs APIs and tests * comment test assertions, add recordings * pylint * fix type declaration * update changelog and descriptions
- Loading branch information
1 parent
a20c361
commit ee1b90d
Showing
41 changed files
with
5,238 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
32 changes: 32 additions & 0 deletions
32
...ure-ai-formrecognizer/tests/recordings/test_id_documents.test_authentication_bad_key.yaml
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,32 @@ | ||
interactions: | ||
- request: | ||
body: xx | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '2' | ||
Content-Type: | ||
- image/jpeg | ||
User-Agent: | ||
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) | ||
method: POST | ||
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/idDocument/analyze?includeTextDetails=false | ||
response: | ||
body: | ||
string: '{"error": {"code": "401", "message": "Access denied due to invalid | ||
subscription key or wrong API endpoint. Make sure to provide a valid key for | ||
an active subscription and use a correct regional API endpoint for your resource."}}' | ||
headers: | ||
content-length: | ||
- '224' | ||
date: | ||
- Fri, 05 Mar 2021 17:44:04 GMT | ||
status: | ||
code: 401 | ||
message: PermissionDenied | ||
version: 1 |
Oops, something went wrong.