Skip to content

Commit

Permalink
Added some examples for delete and cancel; updated samples for new pr…
Browse files Browse the repository at this point in the history
…eview
  • Loading branch information
Abigail Hartman authored and Abigail Hartman committed Jan 18, 2022
1 parent 5b069f7 commit 40fe511
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"ApiVersion": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18"
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2022-03-01-preview"
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"ApiVersion": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18"
},
"responses": {
"202": {
"headers": {
"Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}/data?api-version=2022-03-01-preview"
}
}
}
}

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2022-02-01-preview",
"api-version": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2022-02-01-preview",
"api-version": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"jobId": "{Job ID}",
"input": {
Expand Down Expand Up @@ -42,7 +42,8 @@
"responses": {
"202": {
"headers": {
"Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}"
"Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2022-03-01-preview",
"Location": "{Endpoint}/language/analyze-text/jobs/{jobId}/data?api-version=2022-03-01-preview"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2022-02-01-preview",
"api-version": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"input": {
"kind": "EntityLinking",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2022-02-01-preview",
"api-version": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"input": {
"kind": "EntityRecogition",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2022-02-01-preview",
"api-version": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"input": {
"kind": "KeyPhraseExtraction",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2022-02-01-preview",
"api-version": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"input": {
"kind": "LanguageDetection",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2022-02-01-preview",
"api-version": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"input": {
"kind": "PiiEntityRecognition",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"api-version": "2022-02-01-preview",
"api-version": "2022-03-01-preview",
"Endpoint": "{Endpoint}",
"input": {
"kind": "SentimentAnalysis",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
"headers": {
"Operation-Location": {
"type": "string"
},
"Location": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -229,7 +232,7 @@
},
"x-ms-examples": {
"Successful Job Delete Request": {
"$ref": ".//examples//SuccessfulJobCancelRequest.json"
"$ref": ".//examples//SuccessfulAnalyzeTextJobsCancelRequest.json"
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -266,7 +269,7 @@
},
"x-ms-examples": {
"Successful Job Delete Request": {
"$ref": ".//examples//SuccessfulJobDeleteRequest.json"
"$ref": ".//examples//SuccessfulAnalyzeTextJobsDeleteRequest.json"
}
},
"x-ms-long-running-operation": true
Expand Down

0 comments on commit 40fe511

Please sign in to comment.