Skip to content

Commit

Permalink
update examples, added required parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhcheng committed Mar 25, 2021
1 parent b132e08 commit fd39065
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,11 @@
}
},
"FileFormat": {
"required": [
"contentTypes",
"fileExtensions",
"format"
],
"type": "object",
"properties": {
"format": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
"endpoint": "{endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"id": "727BF148-F327-47A0-9481-ABAE6362F11E",
"$top": 20,
"$skip": 10,
"$maxpagesize": 10,
"$orderBy": "CreatedDateTime asc",
"$top": 2,
"$skip": 0,
"$maxpagesize": 1,
"$orderBy": "CreatedDateTimeUtc asc",
"createdDateTimeUtcStart": "2021-03-23T07:03:38.0136316Z",
"createdDateTimeUtcEnd": "2021-03-25T07:03:38.0136316Z",
"statuses": [
"Succeeded"
],
"ids": [
"273622bd-835c-4946-9798-fd8f19f6bbf2"
"273622bd-835c-4946-9798-fd8f19f6bbf2",
"511b6a66-a6f8-4640-83e1-48c325e9fa29"
]
},
"responses": {
Expand Down Expand Up @@ -100,16 +101,16 @@
{
"path": "https://myblob.blob.core.windows.net/destinationContainer/fr/mydoc.txt",
"sourcePath": "https://myblob.blob.core.windows.net/sourceContainer/fr/mydoc.txt",
"createdDateTimeUtc": "2020-03-26T00:00:00Z",
"lastActionDateTimeUtc": "2020-03-26T01:00:00Z",
"createdDateTimeUtc": "2021-03-23T07:03:39.013631Z",
"lastActionDateTimeUtc": "2021-03-23T07:03:41.012452Z",
"status": "Running",
"to": "fr",
"progress": 0.1,
"id": "273622bd-835c-4946-9798-fd8f19f6bbf2",
"characterCharged": 0
}
],
"@nextLink": "https://westus.cognitiveservices.azure.com/translator/text/batch/v1.0.preview.1/operation/0FA2822F-4C2A-4317-9C20-658C801E0E55/documents?$top=5&$skip=15"
"@nextLink": "https://westus.cognitiveservices.azure.com/translator/text/batch/v1.0.preview.1/operation/0FA2822F-4C2A-4317-9C20-658C801E0E55/documents?$top=1&$skip=1&$maxpagesize=1&$orderBy=CreatedDateTimeUtc asc&createdDateTimeUtcStart=2021-03-23T00:03:38.0136316Z&createdDateTimeUtcEnd=2021-03-25T00:03:38.0136316&statuses=Succeeded&ids=273622BD-835C-4946-9798-FD8F19F6BBF2,511B6A66-A6F8-4640-83E1-48C325E9FA29"
}
},
"400": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"contentTypes": [
"application/xliff+xml"
],
"defaultVersion": "1.2",
"versions": [
"1.0",
"1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"resourceGroupName": "TestResourceGroup",
"endpoint": "{endpoint}",
"Ocp-Apim-Subscription-Key": "{API key}",
"$top": 20,
"$skip": 10,
"$top": 1,
"$skip": 0,
"$maxpagesize": 10,
"$orderBy": "CreatedDateTime asc",
"createdDateTimeUtcStart": "2021-03-23T07:03:38.0136316Z",
Expand Down Expand Up @@ -83,9 +83,9 @@
"body": {
"value": [
{
"id": "727bf148-f327-47a0-9481-abae6362f11e",
"createdDateTimeUtc": "2020-03-26T00:00:00Z",
"lastActionDateTimeUtc": "2020-03-26T01:00:00Z",
"id": "273622bd-835c-4946-9798-fd8f19f6bbf2",
"createdDateTimeUtc": "2021-03-23T07:03:30.013631Z",
"lastActionDateTimeUtc": "2021-03-26T01:00:00Z",
"status": "Succeeded",
"summary": {
"total": 10,
Expand Down

0 comments on commit fd39065

Please sign in to comment.