Skip to content

Commit

Permalink
[cognitive Services] Update endpoint URL template for TextAnalytics. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyuan authored and annatisch committed Jul 26, 2018
1 parent 332b885 commit 4867231
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ nodejs:
package-name: azure-cognitiveservices-textanalytics
package-version: 1.0.0
output-folder: $(node-sdks-folder)/lib/services/textAnalytics
override-client-name: TextAnalyticsAPIClient
azure-arm: false
generate-license-txt: true
generate-package-json: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@
"apim_key": []
}
],
"host": "api.cognitive.microsoft.com",
"basePath": "/text/analytics/v2.0",
"schemes": [
"https"
],
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}/text/analytics/v2.0",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "#/parameters/Endpoint"
}
]
},
"paths": {
"/keyPhrases": {
"post": {
Expand Down Expand Up @@ -572,5 +576,16 @@
}
}
}
},
"parameters": {
"Endpoint": {
"name": "Endpoint",
"description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).",
"x-ms-parameter-location": "client",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"AzureRegion": "westus",
"Endpoint": "{Endpoint}",
"input": {
"documents": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"AzureRegion": "westus",
"Endpoint": "{Endpoint}",
"input": {
"documents": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"AzureRegion": "westus",
"Endpoint": "{Endpoint}",
"input": {
"documents": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"Ocp-Apim-Subscription-Key": "{API key}",
"AzureRegion": "westus",
"Endpoint": "{Endpoint}",
"input": {
"documents": [
{
Expand Down

0 comments on commit 4867231

Please sign in to comment.