From faaca6c0dec3efe45b35a48607afa09ed360645a Mon Sep 17 00:00:00 2001 From: Dina Berry Date: Tue, 19 Mar 2019 10:53:14 -0700 Subject: [PATCH 1/2] LUIS runtime changes --- .../Runtime/stable/v2.0/LUIS-Runtime.json | 64 ++++++++++++++----- 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Runtime/stable/v2.0/LUIS-Runtime.json b/specification/cognitiveservices/data-plane/LUIS/Runtime/stable/v2.0/LUIS-Runtime.json index 36bbf757be65..67df37382102 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Runtime/stable/v2.0/LUIS-Runtime.json +++ b/specification/cognitiveservices/data-plane/LUIS/Runtime/stable/v2.0/LUIS-Runtime.json @@ -5,11 +5,52 @@ "version": "2.0" }, "x-ms-parameterized-host": { - "hostTemplate": "{Endpoint}/luis/v2.0", - "useSchemePrefix": false, + "hostTemplate": "{AzureRegion}.api.cognitive.microsoft.{AzureCloud}/luis/v2.0", "parameters": [ { - "$ref": "#/parameters/Endpoint" + "name": "AzureRegion", + "description": "Supported Azure regions for Cognitive Services endpoints", + "x-ms-parameter-location": "client", + "required": true, + "type": "string", + "in": "path", + "x-ms-skip-url-encoding": true, + "x-ms-enum": { + "name": "AzureRegions", + "modelAsString": false + }, + "enum": [ + "westus", + "westeurope", + "southeastasia", + "eastus2", + "westcentralus", + "westus2", + "eastus", + "southcentralus", + "northeurope", + "eastasia", + "australiaeast", + "brazilsouth", + "virginia" + ] + }, + { + "name": "AzureCloud", + "description": "Supported Azure Clouds for Cognitive Services endpoints", + "x-ms-parameter-location": "client", + "required": true, + "type": "string", + "in": "path", + "x-ms-skip-url-encoding": true, + "x-ms-enum": { + "name": "AzureClouds", + "modelAsString": false + }, + "enum": [ + "com", + "us" + ] } ] }, @@ -35,6 +76,7 @@ "name": "appId", "in": "path", "type": "string", + "format": "uuid", "required": true, "description": "The LUIS application ID (guid)." }, @@ -74,7 +116,7 @@ { "name": "bing-spell-check-subscription-key", "in": "query", - "description": "The subscription key to use when enabling bing spell check", + "description": "The subscription key to use when enabling Bing spell check", "type": "string" }, { @@ -115,6 +157,7 @@ "name": "appId", "in": "path", "type": "string", + "format": "uuid", "required": true, "description": "The LUIS application ID (Guid)." }, @@ -155,7 +198,7 @@ { "name": "bing-spell-check-subscription-key", "in": "query", - "description": "The subscription key to use when enabling bing spell check", + "description": "The subscription key to use when enabling Bing spell check", "type": "string" }, { @@ -327,7 +370,7 @@ }, "additionalProperties": { "type": "object", - "description": "List of additional properties. E.g.: score and resolution values for pre-built LUIS entities." + "description": "List of additional properties. For example, score and resolution values for pre-built LUIS entities." }, "required": [ "entity", @@ -406,14 +449,5 @@ } }, "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 - } } } \ No newline at end of file From 1e7415ddfdb783e444a35846cf77aeedce475373 Mon Sep 17 00:00:00 2001 From: Nesma Date: Thu, 21 Mar 2019 14:57:59 +0200 Subject: [PATCH 2/2] Reverting some changes --- .../Runtime/stable/v2.0/LUIS-Runtime.json | 60 +++++-------------- 1 file changed, 14 insertions(+), 46 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Runtime/stable/v2.0/LUIS-Runtime.json b/specification/cognitiveservices/data-plane/LUIS/Runtime/stable/v2.0/LUIS-Runtime.json index 67df37382102..aba7c1f5876b 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Runtime/stable/v2.0/LUIS-Runtime.json +++ b/specification/cognitiveservices/data-plane/LUIS/Runtime/stable/v2.0/LUIS-Runtime.json @@ -4,57 +4,16 @@ "title": "LUIS Runtime Client", "version": "2.0" }, - "x-ms-parameterized-host": { - "hostTemplate": "{AzureRegion}.api.cognitive.microsoft.{AzureCloud}/luis/v2.0", + "x-ms-parameterized-host": { + "hostTemplate": "{Endpoint}/luis/v2.0", + "useSchemePrefix": false, "parameters": [ { - "name": "AzureRegion", - "description": "Supported Azure regions for Cognitive Services endpoints", - "x-ms-parameter-location": "client", - "required": true, - "type": "string", - "in": "path", - "x-ms-skip-url-encoding": true, - "x-ms-enum": { - "name": "AzureRegions", - "modelAsString": false - }, - "enum": [ - "westus", - "westeurope", - "southeastasia", - "eastus2", - "westcentralus", - "westus2", - "eastus", - "southcentralus", - "northeurope", - "eastasia", - "australiaeast", - "brazilsouth", - "virginia" - ] - }, - { - "name": "AzureCloud", - "description": "Supported Azure Clouds for Cognitive Services endpoints", - "x-ms-parameter-location": "client", - "required": true, - "type": "string", - "in": "path", - "x-ms-skip-url-encoding": true, - "x-ms-enum": { - "name": "AzureClouds", - "modelAsString": false - }, - "enum": [ - "com", - "us" - ] + "$ref": "#/parameters/Endpoint" } ] }, - "securityDefinitions": { + "securityDefinitions": { "apiKeyHeader": { "type": "apiKey", "name": "Ocp-Apim-Subscription-Key", @@ -449,5 +408,14 @@ } }, "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 + } } } \ No newline at end of file