From 4dd5524fd7fee675a274b8fba984bb2b65b09d41 Mon Sep 17 00:00:00 2001 From: Omar El-Hariry Date: Tue, 20 Nov 2018 20:19:03 +0200 Subject: [PATCH 01/20] Adding azure accounts APIs --- .../Authoring/stable/v2.0/LUIS-Authoring.json | 257 ++++++++++++++++++ .../SuccessfulAssignAzureAccountRequest.json | 22 ++ ...sfulDeleteAssignedAzureAccountRequest.json | 22 ++ ...essfulGetAssignedAzureAccountsRequest.json | 20 ++ .../SuccessfulGetAzureAccountsRequest.json | 19 ++ 5 files changed, 340 insertions(+) create mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulAssignAzureAccountRequest.json create mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulDeleteAssignedAzureAccountRequest.json create mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json create mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 102493766dfe..4a9bba298957 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -7557,6 +7557,225 @@ } } } + }, + "/apps/{appId}/azureaccounts": { + "post": { + "description": "Assigns an azure account to the application.", + "operationId": "5be32228e8473de116325515", + "summary": "apps - Assign a LUIS azure accounts to an application", + "parameters": [ + { + "$ref": "#/parameters/AppIdInPath" + }, + { + "$ref": "#/parameters/BearerAuthPath" + }, + { + "name": "azureAccountInfoObject", + "in": "body", + "schema": { + "$ref": "#/definitions/AzureAccountInfoObject" + }, + "description": "The azure account information object." + } + ], + "consumes": [ + "application/json" + ], + "responses": { + "201": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "429": { + "$ref": "#/responses/429" + }, + "400": { + "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + } + }, + "produces": [ + "application/json" + ], + "x-ms-examples": { + "Successful Assign azure account request": { + "$ref": "./examples/versions/SuccessfulAssignAzureAccountRequest.json" + } + } + }, + "get": { + "description": "Gets the LUIS azure accounts assigned to the application for the user using his ARM token.", + "operationId": "5be32028a1d48f88cfd57e20", + "summary": "apps - Get LUIS azure accounts assigned to the application", + "parameters": [ + { + "$ref": "#/parameters/AppIdInPath" + }, + { + "$ref": "#/parameters/BearerAuthPath" + } + ], + "responses": { + "200": { + "description": "A list of azure account information objects.", + "schema": { + "$ref": "#/definitions/AzureAccountInfoList" + } + }, + "429": { + "$ref": "#/responses/429" + }, + "400": { + "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + } + }, + "produces": [ + "application/json" + ], + "x-ms-examples": { + "Successful Get assigned azure accounts request": { + "$ref": "./examples/versions/SuccessfulGetAssignedAzureAccountsRequest.json" + } + } + }, + "delete": { + "description": "Removes assigned azure account from the application.", + "operationId": "5be32554f8591db3a86232e1", + "summary": "apps - Removes an assigned LUIS azure account from an application", + "parameters": [ + { + "$ref": "#/parameters/AppIdInPath" + }, + { + "$ref": "#/parameters/BearerAuthPath" + }, + { + "name": "azureAccountInfoObject", + "in": "body", + "schema": { + "$ref": "#/definitions/AzureAccountInfoObject" + }, + "description": "The azure account information object." + } + ], + "consumes": [ + "application/json" + ], + "responses": { + "200": { + "description": "Successful operation.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "429": { + "$ref": "#/responses/429" + }, + "400": { + "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + } + }, + "produces": [ + "application/json" + ], + "x-ms-examples": { + "Successful Get delete azure account request": { + "$ref": "./examples/versions/SuccessfulDeleteAssignedAzureAccountRequest.json" + } + } + } + }, + "/azureaccounts": { + "get": { + "description": "Gets the LUIS azure accounts for the user using his ARM token.", + "operationId": "5be313cec181ae720aa2b26c", + "summary": "user - Get LUIS azure accounts", + "parameters": [ + { + "$ref": "#/parameters/BearerAuthPath" + } + ], + "responses": { + "200": { + "description": "A list of azure account information objects.", + "schema": { + "$ref": "#/definitions/AzureAccountInfoList" + } + }, + "429": { + "$ref": "#/responses/429" + }, + "400": { + "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + } + }, + "produces": [ + "application/json" + ], + "x-ms-examples": { + "Successful Get azure accounts request": { + "$ref": "./examples/stats/SuccessfulGetAzureAccountsRequest.json" + } + } + } + } + }, + "responses": { + "401": { + "description": "You do not have access. \r\n\r\nReasons can include:\r\n\r\n* used endpoint subscription key, instead of authoring key\r\n* invalid, malformed, or empty authoring key\r\n* authoring key doesn't match region\r\n* you are not the owner or collaborator\r\n* invalid order of API calls\r\n", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "403": { + "description": "Total monthly key quota limit exceeded", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "429": { + "description": "Rate limit is exceeded.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "definitions": { @@ -9818,6 +10037,36 @@ "type": "string" } } + }, + "AzureAccountInfoList": { + "description": "List of Azure account info objects.", + "type": "array", + "items": { + "$ref": "#/definitions/AzureAccountInfoObject" + } + }, + "AzureAccountInfoObject": { + "description": "Defines the azure account information object.", + "type": "object", + "required": [ + "azureSubscriptionId", + "resourceGroup", + "accountName" + ], + "properties": { + "azureSubscriptionId": { + "description": "The id for the azure subscription.", + "type": "string" + }, + "resourceGroup": { + "description": "The azure resource group name.", + "type": "string" + }, + "accountName": { + "description": "The azure account name.", + "type": "string" + } + } } }, "parameters": { @@ -9892,6 +10141,14 @@ "type": "string", "in": "path", "x-ms-skip-url-encoding": true + }, + "BearerAuthPath": { + "name": "Authorization", + "in": "header", + "description": "The bearer authorization header to use; containing the user's ARM token used to validate azure accounts information.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" } } } \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulAssignAzureAccountRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulAssignAzureAccountRequest.json new file mode 100644 index 000000000000..eaf53e9db08a --- /dev/null +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulAssignAzureAccountRequest.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", + "Authorization": "Bearer {ARM Token}", + "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", + "azureAccountInfoObject": { + "azureSubscriptionId": "{azure_subscription_id}", + "resourceGroup": "{resource_group_name}", + "accountName": "{account_name}" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "code": "Success", + "message": "Operation Successful" + } + } + } +} \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulDeleteAssignedAzureAccountRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulDeleteAssignedAzureAccountRequest.json new file mode 100644 index 000000000000..eaf53e9db08a --- /dev/null +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulDeleteAssignedAzureAccountRequest.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", + "Authorization": "Bearer {ARM Token}", + "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", + "azureAccountInfoObject": { + "azureSubscriptionId": "{azure_subscription_id}", + "resourceGroup": "{resource_group_name}", + "accountName": "{account_name}" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "code": "Success", + "message": "Operation Successful" + } + } + } +} \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json new file mode 100644 index 000000000000..d952aab34ef4 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", + "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", + "Authorization": "Bearer {ARM Token}" + }, + "responses": { + "200": { + "headers": {}, + "body": [ + { + "AzureSubscriptionId": "{azure_subscription_id}", + "ResourceGroup": "{resource_group_name}", + "AccountName": "{account_name}", + } + ] + } + } +} \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json new file mode 100644 index 000000000000..e12f237d06b9 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", + "Authorization": "Bearer {ARM Token}" + }, + "responses": { + "200": { + "headers": {}, + "body": [ + { + "AzureSubscriptionId": "{azure_subscription_id}", + "ResourceGroup": "{resource_group_name}", + "AccountName": "{account_name}", + } + ] + } + } +} \ No newline at end of file From 216d2906b6583d8d481c5f30600ccd6ed93f239f Mon Sep 17 00:00:00 2001 From: Mohab Ghanem Date: Wed, 21 Nov 2018 14:04:32 +0200 Subject: [PATCH 02/20] Adding Publishing To Regions Status --- .../Authoring/stable/v2.0/LUIS-Authoring.json | 22 ++++++++++++++++++- .../SuccessfulPublishApplicationRequest.json | 3 ++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 4a9bba298957..c9cafeabb037 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -2815,11 +2815,23 @@ ], "responses": { "201": { - "description": "An object containing the application endpoint URL and its assigned endpoint key.", + "description": "An object containing the application endpoint URL, its assigned endpoint key and publishing status.", "schema": { "$ref": "#/definitions/ProductionOrStagingEndpointInfo" } }, + "207": { + "description": "An object containing the application endpoint URL, its assigned endpoint key and publishing status.", + "schema": { + "$ref": "#/definitions/ProductionOrStagingEndpointInfo" + } + }, + "503": { + "description": "A string with the error message", + "schema": { + "$ref": "#/definitions/ErrorMessage" + } + }, "default": { "description": "Error Response.", "schema": { @@ -9332,6 +9344,10 @@ "type": "string", "description": "The endpoint's region." }, + "failedRegions": { + "type": "string", + "description": "Regions where publishing failed." + }, "publishedDateTime": { "description": "Timestamp when was last published.", "type": "string" @@ -9604,6 +9620,10 @@ "type": "object" } }, + "ErrorMessage": { + "description": "Error message when invoking an operation on the API.", + "type": "string" + }, "OperationError": { "description": "Operation error details when invoking an operation on the API.", "type": "object", diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json index b9d787b9955d..ec39ab650282 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json @@ -15,7 +15,8 @@ "isStaging": false, "endpointUrl": "https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/11be6373fca44ded80fbe2afa8597c18", "assignedEndpointKey": "11be6373fca44ded80fbe2afa8597c18", - "endpointRegion": "westus", + "endpointRegion": "westus, cus", + "FailedRegions": "cus", "publishedDateTime": "2017-11-28T19:20:28Z" } } From 9834b9b3c5f26803d90ea8214854c45144a8bdfd Mon Sep 17 00:00:00 2001 From: Mohab Ghanem Date: Wed, 21 Nov 2018 14:22:33 +0200 Subject: [PATCH 03/20] fixes --- .../v2.0/examples/apps/SuccessfulPublishApplicationRequest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json index ec39ab650282..c5342d4cc30c 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json @@ -16,7 +16,7 @@ "endpointUrl": "https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/11be6373fca44ded80fbe2afa8597c18", "assignedEndpointKey": "11be6373fca44ded80fbe2afa8597c18", "endpointRegion": "westus, cus", - "FailedRegions": "cus", + "failedRegions": "cus", "publishedDateTime": "2017-11-28T19:20:28Z" } } From 431fadac7b30b7c33b9fa6468874fce839869345 Mon Sep 17 00:00:00 2001 From: Omar El-Hariry Date: Sun, 25 Nov 2018 13:42:11 +0200 Subject: [PATCH 04/20] fixing build errors --- .../LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 4a9bba298957..4069b9461ea9 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -7610,7 +7610,7 @@ ], "x-ms-examples": { "Successful Assign azure account request": { - "$ref": "./examples/versions/SuccessfulAssignAzureAccountRequest.json" + "$ref": "./examples/stats/SuccessfulAssignAzureAccountRequest.json" } } }, @@ -7654,7 +7654,7 @@ ], "x-ms-examples": { "Successful Get assigned azure accounts request": { - "$ref": "./examples/versions/SuccessfulGetAssignedAzureAccountsRequest.json" + "$ref": "./examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json" } } }, @@ -7708,8 +7708,8 @@ "application/json" ], "x-ms-examples": { - "Successful Get delete azure account request": { - "$ref": "./examples/versions/SuccessfulDeleteAssignedAzureAccountRequest.json" + "Successful delete assigned azure account request": { + "$ref": "./examples/stats/SuccessfulDeleteAssignedAzureAccountRequest.json" } } } From 4289fc27afed08636bf27abb57ace4a1ff69b7ee Mon Sep 17 00:00:00 2001 From: Omar El-Hariry Date: Wed, 28 Nov 2018 13:29:32 +0200 Subject: [PATCH 05/20] Fixing OAV errors --- .../examples/apps/SuccessfulGetApplicationsListRequest.json | 4 ++-- ...SuccessfulGetApplicationVersionClosedListInfosRequest.json | 4 ++-- .../SuccessfulGetApplicationVersionEntityInfosRequest.json | 4 ++-- .../SuccessfulGetApplicationVersionIntentInfosRequest.json | 4 ++-- .../SuccessfulGetApplicationVersionModelInfosRequest.json | 4 ++-- .../SuccessfulGetApplicationVersionPrebuiltInfosRequest.json | 4 ++-- ...SuccessfulGetAvailablePrebuiltEntityExtractorsRequest.json | 4 ++-- .../versions/SuccessfulGetApplicationVersionsInfoRequest.json | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulGetApplicationsListRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulGetApplicationsListRequest.json index 659303dd2529..744f4a6a0761 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulGetApplicationsListRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulGetApplicationsListRequest.json @@ -2,8 +2,8 @@ "parameters": { "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", - "skip": "0", - "take": "100" + "skip": 0, + "take": 100 }, "responses": { "200": { diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionClosedListInfosRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionClosedListInfosRequest.json index 09d25fc6e33c..7d56d186c9c7 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionClosedListInfosRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionClosedListInfosRequest.json @@ -4,8 +4,8 @@ "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "11be6373fca44ded80fbe2afa8597c18", "versionId": "0.1", - "skip": "0", - "take": "100" + "skip": 0, + "take": 100 }, "responses": { "200": { diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionEntityInfosRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionEntityInfosRequest.json index f7a2e8f98daa..707b47439571 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionEntityInfosRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionEntityInfosRequest.json @@ -4,8 +4,8 @@ "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "86226c53-b7a6-416f-876b-226b2b5ab07b", "versionId": "0.1", - "skip": "0", - "take": "100" + "skip": 0, + "take": 100 }, "responses": { "200": { diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionIntentInfosRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionIntentInfosRequest.json index 78e48042ff47..b55418948e40 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionIntentInfosRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionIntentInfosRequest.json @@ -4,8 +4,8 @@ "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "86226c53-b7a6-416f-876b-226b2b5ab07b", "versionId": "0.1", - "skip": "0", - "take": "100" + "skip": 0, + "take": 100 }, "responses": { "200": { diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionModelInfosRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionModelInfosRequest.json index ea7dc2e12b97..b2e2ab6e98d2 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionModelInfosRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionModelInfosRequest.json @@ -4,8 +4,8 @@ "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "86226c53-b7a6-416f-876b-226b2b5ab07b", "versionId": "0.1", - "skip": "0", - "take": "100" + "skip": 0, + "take": 100 }, "responses": { "200": { diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionPrebuiltInfosRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionPrebuiltInfosRequest.json index 2a779a7dfb41..6171e22c816d 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionPrebuiltInfosRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetApplicationVersionPrebuiltInfosRequest.json @@ -4,8 +4,8 @@ "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "86226c53-b7a6-416f-876b-226b2b5ab07b", "versionId": "0.1", - "skip": "0", - "take": "100" + "skip": 0, + "take": 100 }, "responses":{ "200":{ diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetAvailablePrebuiltEntityExtractorsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetAvailablePrebuiltEntityExtractorsRequest.json index e060917a2803..0bf1713a13b6 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetAvailablePrebuiltEntityExtractorsRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/model/SuccessfulGetAvailablePrebuiltEntityExtractorsRequest.json @@ -4,8 +4,8 @@ "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "86226c53-b7a6-416f-876b-226b2b5ab07b", "versionId": "0.1", - "skip": "0", - "take": "100" + "skip": 0, + "take": 100 }, "responses":{ "200":{ diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulGetApplicationVersionsInfoRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulGetApplicationVersionsInfoRequest.json index adc76b3779b9..aae2f0736d6b 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulGetApplicationVersionsInfoRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulGetApplicationVersionsInfoRequest.json @@ -3,8 +3,8 @@ "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", - "skip": "0", - "take": "100" + "skip": 0, + "take": 100 }, "responses": { "200": { From 62749e25ccaaadba33847f75b03d8a1f20deadde Mon Sep 17 00:00:00 2001 From: Amir George Date: Sun, 2 Dec 2018 13:07:00 +0200 Subject: [PATCH 06/20] Add packaging APIs --- .../Authoring/stable/v2.0/LUIS-Authoring.json | 112 +++++++++++++++++- ...GetPublishedApplicationPackageRequest.json | 14 +++ ...ulGetTrainedApplicationPackageRequest.json | 14 +++ 3 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json create mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 05bb003fbd7a..b0f22041e318 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -7574,7 +7574,7 @@ "post": { "description": "Assigns an azure account to the application.", "operationId": "5be32228e8473de116325515", - "summary": "apps - Assign a LUIS azure accounts to an application", + "summary": "apps - Assign a LUIS azure account to an application", "parameters": [ { "$ref": "#/parameters/AppIdInPath" @@ -7768,6 +7768,98 @@ } } } + }, + "/package/{appId}/slot/{slotName}/gzip": { + "get": { + "description": "Packages published LUIS application as GZip.", + "operationId": "apps-packagepublishedapplicationasgzip", + "summary": "package - Gets published LUIS application package in binary stream GZip format", + "parameters": [ + { + "$ref": "#/parameters/AppIdInPath" + }, + { + "$ref": "#/parameters/SlotNameInPath" + } + ], + "responses": { + "200": { + "description": "The GZip binary stream of the published application package.", + "schema": { + "$ref": "#/definitions/PackageBinaryStreamObject" + } + }, + "429": { + "$ref": "#/responses/429" + }, + "400": { + "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + } + }, + "produces": [ + "application/octet-stream" + ], + "x-ms-examples": { + "Successful Get published application package request": { + "$ref": "./examples/package/SuccessfulGetTrainedApplicationPackageRequest.json" + } + } + } + }, + "/package/{appId}/versions/{versionId}/gzip": { + "get": { + "description": "Packages trained LUIS application as GZip.", + "operationId": "apps-packagetrainedapplicationasgzip", + "summary": "package - Gets trained LUIS application package in binary stream GZip format", + "parameters": [ + { + "$ref": "#/parameters/AppIdInPath" + }, + { + "$ref": "#/parameters/VersionIdInPath" + } + ], + "responses": { + "200": { + "description": "The GZip binary stream of the trained application package.", + "schema": { + "$ref": "#/definitions/PackageBinaryStreamObject" + } + }, + "429": { + "$ref": "#/responses/429" + }, + "400": { + "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + } + }, + "produces": [ + "application/octet-stream" + ], + "x-ms-examples": { + "Successful Get published application package request": { + "$ref": "./examples/package/SuccessfulGetPublishedApplicationPackageRequest.json" + } + } + } } }, "responses": { @@ -10087,6 +10179,15 @@ "type": "string" } } + }, + "PackageBinaryStreamObject": { + "description": "The binary stream of the application package.", + "type": "array", + "items": { + "type": "byte" + }, + "required": [], + "properties": { } } }, "parameters": { @@ -10134,6 +10235,15 @@ "format": "uuid", "x-ms-parameter-location": "method" }, + "SlotNameInPath": { + "name": "slotName", + "in": "path", + "description": "The publishing slot name.", + "required": true, + "type": "string", + "format": "uuid", + "x-ms-parameter-location": "method" + }, "SkipInPath": { "name": "skip", "in": "query", diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json new file mode 100644 index 000000000000..d4b7ddf12933 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", + "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", + "slotName": "PRODUCTION" + }, + "responses": { + "200": { + "headers": {}, + "body": [] + } + } +} \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json new file mode 100644 index 000000000000..a611a23cad6a --- /dev/null +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "Endpoint": "{Endpoint}", + "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", + "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", + "versionId": "0.1" + }, + "responses": { + "200": { + "headers": {}, + "body": [] + } + } +} \ No newline at end of file From ed6ee40c2eea44ff927e6499ab01ca27acd575b1 Mon Sep 17 00:00:00 2001 From: Omar El-Hariry Date: Sun, 2 Dec 2018 13:41:34 +0200 Subject: [PATCH 07/20] fixing build errors --- .../LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index b0f22041e318..90bdc48f5ef9 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -10182,12 +10182,7 @@ }, "PackageBinaryStreamObject": { "description": "The binary stream of the application package.", - "type": "array", - "items": { - "type": "byte" - }, - "required": [], - "properties": { } + "type": "object" } }, "parameters": { From 0385ed2232e85801d6f271fb82a1f1294fa747d0 Mon Sep 17 00:00:00 2001 From: Amir George Date: Mon, 3 Dec 2018 21:06:36 +0200 Subject: [PATCH 08/20] apply yangyuan suggestion --- .../data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 90bdc48f5ef9..149692a2eb19 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -10182,7 +10182,8 @@ }, "PackageBinaryStreamObject": { "description": "The binary stream of the application package.", - "type": "object" + "type": "string", + "format": "binary" } }, "parameters": { From 3495ee0147560205dfc77d9c40031ec821e01a6e Mon Sep 17 00:00:00 2001 From: Amir George Date: Mon, 3 Dec 2018 21:12:36 +0200 Subject: [PATCH 09/20] adding response content for gzip apis --- .../data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 149692a2eb19..3fb401215f84 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -7784,6 +7784,7 @@ ], "responses": { "200": { + "content": "application/octet-stream", "description": "The GZip binary stream of the published application package.", "schema": { "$ref": "#/definitions/PackageBinaryStreamObject" @@ -7830,6 +7831,7 @@ ], "responses": { "200": { + "content": "application/octet-stream", "description": "The GZip binary stream of the trained application package.", "schema": { "$ref": "#/definitions/PackageBinaryStreamObject" From 1ac86ec659c9e36cd26c1fb8f78120d43c7d8eb7 Mon Sep 17 00:00:00 2001 From: Amir George Date: Mon, 3 Dec 2018 21:14:12 +0200 Subject: [PATCH 10/20] Revert "adding response content for gzip apis" This reverts commit 3495ee0147560205dfc77d9c40031ec821e01a6e. --- .../data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 3fb401215f84..149692a2eb19 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -7784,7 +7784,6 @@ ], "responses": { "200": { - "content": "application/octet-stream", "description": "The GZip binary stream of the published application package.", "schema": { "$ref": "#/definitions/PackageBinaryStreamObject" @@ -7831,7 +7830,6 @@ ], "responses": { "200": { - "content": "application/octet-stream", "description": "The GZip binary stream of the trained application package.", "schema": { "$ref": "#/definitions/PackageBinaryStreamObject" From 2ded1b1fea6994788a674a162474ee355bf16195 Mon Sep 17 00:00:00 2001 From: Amir George Date: Tue, 4 Dec 2018 14:10:40 +0200 Subject: [PATCH 11/20] PackageBinaryStreamObject type as file --- .../data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 149692a2eb19..45d08e8fc5a1 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -10182,8 +10182,7 @@ }, "PackageBinaryStreamObject": { "description": "The binary stream of the application package.", - "type": "string", - "format": "binary" + "type": "file" } }, "parameters": { From c0f9f6bd02e81a6ce63ed530594ab6f9533db69b Mon Sep 17 00:00:00 2001 From: Amir George Date: Tue, 4 Dec 2018 14:15:34 +0200 Subject: [PATCH 12/20] remove PackageBinaryStreamObject and directly add file type in response --- .../LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 45d08e8fc5a1..881ec899df42 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -7786,7 +7786,7 @@ "200": { "description": "The GZip binary stream of the published application package.", "schema": { - "$ref": "#/definitions/PackageBinaryStreamObject" + "type": "file" } }, "429": { @@ -7832,7 +7832,7 @@ "200": { "description": "The GZip binary stream of the trained application package.", "schema": { - "$ref": "#/definitions/PackageBinaryStreamObject" + "type": "file" } }, "429": { @@ -10179,10 +10179,6 @@ "type": "string" } } - }, - "PackageBinaryStreamObject": { - "description": "The binary stream of the application package.", - "type": "file" } }, "parameters": { From 3e1273781e6153a2c63dd7a39d6dd328fb6e52c5 Mon Sep 17 00:00:00 2001 From: Amir George Date: Tue, 4 Dec 2018 14:25:41 +0200 Subject: [PATCH 13/20] specify body format in packaging response examples --- .../LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 12 ++++++------ ...cessfulGetPublishedApplicationPackageRequest.json | 5 +++-- ...uccessfulGetTrainedApplicationPackageRequest.json | 5 +++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 881ec899df42..e0c98999def2 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -7774,6 +7774,9 @@ "description": "Packages published LUIS application as GZip.", "operationId": "apps-packagepublishedapplicationasgzip", "summary": "package - Gets published LUIS application package in binary stream GZip format", + "produces": [ + "application/octet-stream" + ], "parameters": [ { "$ref": "#/parameters/AppIdInPath" @@ -7805,9 +7808,6 @@ "$ref": "#/responses/403" } }, - "produces": [ - "application/octet-stream" - ], "x-ms-examples": { "Successful Get published application package request": { "$ref": "./examples/package/SuccessfulGetTrainedApplicationPackageRequest.json" @@ -7820,6 +7820,9 @@ "description": "Packages trained LUIS application as GZip.", "operationId": "apps-packagetrainedapplicationasgzip", "summary": "package - Gets trained LUIS application package in binary stream GZip format", + "produces": [ + "application/octet-stream" + ], "parameters": [ { "$ref": "#/parameters/AppIdInPath" @@ -7851,9 +7854,6 @@ "$ref": "#/responses/403" } }, - "produces": [ - "application/octet-stream" - ], "x-ms-examples": { "Successful Get published application package request": { "$ref": "./examples/package/SuccessfulGetPublishedApplicationPackageRequest.json" diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json index d4b7ddf12933..568e8198b4d5 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json @@ -3,12 +3,13 @@ "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", - "slotName": "PRODUCTION" + "slotName": "PRODUCTION", + "body": "{binary}" }, "responses": { "200": { "headers": {}, - "body": [] + "body": "{Binary}" } } } \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json index a611a23cad6a..9fe73cc8e3f1 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json @@ -3,12 +3,13 @@ "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", - "versionId": "0.1" + "versionId": "0.1", + "body": "{binary}" }, "responses": { "200": { "headers": {}, - "body": [] + "body": "{Binary}" } } } \ No newline at end of file From c6429a10a5e36fbe36b443333b605b932c894860 Mon Sep 17 00:00:00 2001 From: Amir George Date: Tue, 4 Dec 2018 14:50:10 +0200 Subject: [PATCH 14/20] adding content type in packaging response examples parameters --- .../package/SuccessfulGetPublishedApplicationPackageRequest.json | 1 + .../package/SuccessfulGetTrainedApplicationPackageRequest.json | 1 + 2 files changed, 2 insertions(+) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json index 568e8198b4d5..a9a4a53b5ff6 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json @@ -1,5 +1,6 @@ { "parameters": { + "Content-Type": "application/octet-stream", "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json index 9fe73cc8e3f1..395b76ceac8c 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json @@ -1,5 +1,6 @@ { "parameters": { + "Content-Type": "application/octet-stream", "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", From 8dacd4d8397658d53328c24b782cc1c28b17ac8b Mon Sep 17 00:00:00 2001 From: Amir George Date: Tue, 4 Dec 2018 14:56:49 +0200 Subject: [PATCH 15/20] maybe a casing issue? --- .../SuccessfulGetPublishedApplicationPackageRequest.json | 2 +- .../package/SuccessfulGetTrainedApplicationPackageRequest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json index a9a4a53b5ff6..7c2757d81fd0 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json @@ -10,7 +10,7 @@ "responses": { "200": { "headers": {}, - "body": "{Binary}" + "body": "{binary}" } } } \ No newline at end of file diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json index 395b76ceac8c..e697dd916825 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json @@ -10,7 +10,7 @@ "responses": { "200": { "headers": {}, - "body": "{Binary}" + "body": "{binary}" } } } \ No newline at end of file From 631669e2e3b64040a7bb8cc757101804983f796e Mon Sep 17 00:00:00 2001 From: Amir George Date: Tue, 4 Dec 2018 15:02:13 +0200 Subject: [PATCH 16/20] trying to remove the binary body from response parameters --- .../SuccessfulGetPublishedApplicationPackageRequest.json | 3 +-- .../package/SuccessfulGetTrainedApplicationPackageRequest.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json index 7c2757d81fd0..852ff1f4f18d 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json @@ -4,8 +4,7 @@ "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", - "slotName": "PRODUCTION", - "body": "{binary}" + "slotName": "PRODUCTION" }, "responses": { "200": { diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json index e697dd916825..0028119d28ea 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json @@ -4,8 +4,7 @@ "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", - "versionId": "0.1", - "body": "{binary}" + "versionId": "0.1" }, "responses": { "200": { From c7d11c54fe4f164073a570f2dba2510ddbf91c76 Mon Sep 17 00:00:00 2001 From: Amir George Date: Thu, 6 Dec 2018 14:26:21 +0200 Subject: [PATCH 17/20] Add application-json as a 2nd prdocues format for packaging APIs, to describe the error responses --- .../LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index e0c98999def2..a629a4d4c462 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -7774,9 +7774,6 @@ "description": "Packages published LUIS application as GZip.", "operationId": "apps-packagepublishedapplicationasgzip", "summary": "package - Gets published LUIS application package in binary stream GZip format", - "produces": [ - "application/octet-stream" - ], "parameters": [ { "$ref": "#/parameters/AppIdInPath" @@ -7808,6 +7805,10 @@ "$ref": "#/responses/403" } }, + "produces": [ + "application/octet-stream", + "application/json" + ], "x-ms-examples": { "Successful Get published application package request": { "$ref": "./examples/package/SuccessfulGetTrainedApplicationPackageRequest.json" @@ -7820,9 +7821,6 @@ "description": "Packages trained LUIS application as GZip.", "operationId": "apps-packagetrainedapplicationasgzip", "summary": "package - Gets trained LUIS application package in binary stream GZip format", - "produces": [ - "application/octet-stream" - ], "parameters": [ { "$ref": "#/parameters/AppIdInPath" @@ -7854,6 +7852,10 @@ "$ref": "#/responses/403" } }, + "produces": [ + "application/octet-stream", + "application/json" + ], "x-ms-examples": { "Successful Get published application package request": { "$ref": "./examples/package/SuccessfulGetPublishedApplicationPackageRequest.json" From 34ed7bb21fd75191317f953a77d24552d624e8a9 Mon Sep 17 00:00:00 2001 From: Amir George Date: Thu, 6 Dec 2018 16:57:06 +0200 Subject: [PATCH 18/20] fix --- .../stats/SuccessfulGetAssignedAzureAccountsRequest.json | 2 +- .../v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json index d952aab34ef4..b622791f2a6c 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json @@ -12,7 +12,7 @@ { "AzureSubscriptionId": "{azure_subscription_id}", "ResourceGroup": "{resource_group_name}", - "AccountName": "{account_name}", + "AccountName": "{account_name}" } ] } diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json index e12f237d06b9..5a167a206fe7 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json @@ -11,7 +11,7 @@ { "AzureSubscriptionId": "{azure_subscription_id}", "ResourceGroup": "{resource_group_name}", - "AccountName": "{account_name}", + "AccountName": "{account_name}" } ] } From b8ee038af90c620395c27635c989a3a6364335a4 Mon Sep 17 00:00:00 2001 From: Omar El-Hariry Date: Tue, 11 Dec 2018 14:10:03 +0200 Subject: [PATCH 19/20] Updating operation ids --- .../Authoring/stable/v2.0/LUIS-Authoring.json | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index a629a4d4c462..2867dcc770da 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -2719,6 +2719,9 @@ "parameters": [ { "$ref": "#/parameters/AppIdInPath" + }, + { + "$ref": "#/parameters/ForcePath" } ], "responses": { @@ -7573,7 +7576,7 @@ "/apps/{appId}/azureaccounts": { "post": { "description": "Assigns an azure account to the application.", - "operationId": "5be32228e8473de116325515", + "operationId": "AzureAccounts_AssignToApp", "summary": "apps - Assign a LUIS azure account to an application", "parameters": [ { @@ -7628,7 +7631,7 @@ }, "get": { "description": "Gets the LUIS azure accounts assigned to the application for the user using his ARM token.", - "operationId": "5be32028a1d48f88cfd57e20", + "operationId": "AzureAccounts_GetAssigned", "summary": "apps - Get LUIS azure accounts assigned to the application", "parameters": [ { @@ -7672,7 +7675,7 @@ }, "delete": { "description": "Removes assigned azure account from the application.", - "operationId": "5be32554f8591db3a86232e1", + "operationId": "AzureAccounts_RemoveFromApp", "summary": "apps - Removes an assigned LUIS azure account from an application", "parameters": [ { @@ -7729,7 +7732,7 @@ "/azureaccounts": { "get": { "description": "Gets the LUIS azure accounts for the user using his ARM token.", - "operationId": "5be313cec181ae720aa2b26c", + "operationId": "AzureAccounts_GetUserLUISAccounts", "summary": "user - Get LUIS azure accounts", "parameters": [ { @@ -7772,7 +7775,7 @@ "/package/{appId}/slot/{slotName}/gzip": { "get": { "description": "Packages published LUIS application as GZip.", - "operationId": "apps-packagepublishedapplicationasgzip", + "operationId": "Apps_PackagePublishedApplicationAsGzip", "summary": "package - Gets published LUIS application package in binary stream GZip format", "parameters": [ { @@ -7819,7 +7822,7 @@ "/package/{appId}/versions/{versionId}/gzip": { "get": { "description": "Packages trained LUIS application as GZip.", - "operationId": "apps-packagetrainedapplicationasgzip", + "operationId": "Apps_PackageTrainedApplicationAsGzip", "summary": "package - Gets trained LUIS application package in binary stream GZip format", "parameters": [ { @@ -10256,6 +10259,14 @@ "maximum": 500, "x-ms-parameter-location": "method" }, + "ForcePath": { + "name": "force", + "in": "query", + "description": "A flag to indicate whether to force an operation.", + "type": "boolean", + "default": false, + "x-ms-parameter-location": "method" + }, "Endpoint": { "name": "Endpoint", "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).", From 32e19a3f178eab8d32f3fd79316bbaf7569ca7c8 Mon Sep 17 00:00:00 2001 From: Hossam Hazem Date: Wed, 12 Dec 2018 21:58:07 +0200 Subject: [PATCH 20/20] fix oav and remove error responses --- .../Authoring/stable/v2.0/LUIS-Authoring.json | 122 +++--------------- .../SuccessfulPublishApplicationRequest.json | 11 ++ ...GetPublishedApplicationPackageRequest.json | 1 + ...ulGetTrainedApplicationPackageRequest.json | 3 +- .../SuccessfulAssignAzureAccountRequest.json | 2 +- ...essfulGetAssignedAzureAccountsRequest.json | 6 +- .../SuccessfulGetAzureAccountsRequest.json | 6 +- 7 files changed, 40 insertions(+), 111 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index 2867dcc770da..369ab9c62bc2 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -2824,17 +2824,11 @@ } }, "207": { - "description": "An object containing the application endpoint URL, its assigned endpoint key and publishing status.", + "description": "An object containing the application endpoint URL, its assigned endpoint key and publishing status in case that publishing one or more regions failed.", "schema": { "$ref": "#/definitions/ProductionOrStagingEndpointInfo" } }, - "503": { - "description": "A string with the error message", - "schema": { - "$ref": "#/definitions/ErrorMessage" - } - }, "default": { "description": "Error Response.", "schema": { @@ -7604,20 +7598,11 @@ "$ref": "#/definitions/OperationStatus" } }, - "429": { - "$ref": "#/responses/429" - }, - "400": { - "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", - "schema": { + "default": { + "description": "Error Response.", + "schema": { "$ref": "#/definitions/ErrorResponse" } - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" } }, "produces": [ @@ -7648,20 +7633,11 @@ "$ref": "#/definitions/AzureAccountInfoList" } }, - "429": { - "$ref": "#/responses/429" - }, - "400": { - "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", - "schema": { + "default": { + "description": "Error Response.", + "schema": { "$ref": "#/definitions/ErrorResponse" } - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" } }, "produces": [ @@ -7703,20 +7679,11 @@ "$ref": "#/definitions/OperationStatus" } }, - "429": { - "$ref": "#/responses/429" - }, - "400": { - "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", - "schema": { + "default": { + "description": "Error Response.", + "schema": { "$ref": "#/definitions/ErrorResponse" } - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" } }, "produces": [ @@ -7746,20 +7713,11 @@ "$ref": "#/definitions/AzureAccountInfoList" } }, - "429": { - "$ref": "#/responses/429" - }, - "400": { - "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", - "schema": { + "default": { + "description": "Error Response.", + "schema": { "$ref": "#/definitions/ErrorResponse" } - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" } }, "produces": [ @@ -7792,20 +7750,11 @@ "type": "file" } }, - "429": { - "$ref": "#/responses/429" - }, - "400": { - "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", - "schema": { + "default": { + "description": "Error Response.", + "schema": { "$ref": "#/definitions/ErrorResponse" } - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" } }, "produces": [ @@ -7839,20 +7788,11 @@ "type": "file" } }, - "429": { - "$ref": "#/responses/429" - }, - "400": { - "description": "This error can be returned if the request's parameters are incorrect meaning the required parameters are missing, malformed, or too large.\r\n\r\nThis error can be returned if the request's body is incorrect meaning the JSON is missing, malformed, or too large. ", - "schema": { + "default": { + "description": "Error Response.", + "schema": { "$ref": "#/definitions/ErrorResponse" } - }, - "401": { - "$ref": "#/responses/401" - }, - "403": { - "$ref": "#/responses/403" } }, "produces": [ @@ -7867,26 +7807,6 @@ } } }, - "responses": { - "401": { - "description": "You do not have access. \r\n\r\nReasons can include:\r\n\r\n* used endpoint subscription key, instead of authoring key\r\n* invalid, malformed, or empty authoring key\r\n* authoring key doesn't match region\r\n* you are not the owner or collaborator\r\n* invalid order of API calls\r\n", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "403": { - "description": "Total monthly key quota limit exceeded", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, - "429": { - "description": "Rate limit is exceeded.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, "definitions": { "EntityLabelObject": { "description": "Defines the entity type and position of the extracted entity within the example.", @@ -9717,10 +9637,6 @@ "type": "object" } }, - "ErrorMessage": { - "description": "Error message when invoking an operation on the API.", - "type": "string" - }, "OperationError": { "description": "Operation error details when invoking an operation on the API.", "type": "object", diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json index c5342d4cc30c..76486525b275 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json @@ -10,6 +10,17 @@ }, "responses": { "201": { + "headers": {}, + "body": { + "isStaging": false, + "endpointUrl": "https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/11be6373fca44ded80fbe2afa8597c18", + "assignedEndpointKey": "11be6373fca44ded80fbe2afa8597c18", + "endpointRegion": "westus, cus", + "failedRegions": null, + "publishedDateTime": "2017-11-28T19:20:28Z" + } + }, + "207": { "headers": {}, "body": { "isStaging": false, diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json index 852ff1f4f18d..c701c5345510 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetPublishedApplicationPackageRequest.json @@ -4,6 +4,7 @@ "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", + "versionId": "0.1", "slotName": "PRODUCTION" }, "responses": { diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json index 0028119d28ea..c701c5345510 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/package/SuccessfulGetTrainedApplicationPackageRequest.json @@ -4,7 +4,8 @@ "Endpoint": "{Endpoint}", "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000", "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e", - "versionId": "0.1" + "versionId": "0.1", + "slotName": "PRODUCTION" }, "responses": { "200": { diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulAssignAzureAccountRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulAssignAzureAccountRequest.json index eaf53e9db08a..2c2f32084f6c 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulAssignAzureAccountRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulAssignAzureAccountRequest.json @@ -11,7 +11,7 @@ } }, "responses": { - "200": { + "201": { "headers": {}, "body": { "code": "Success", diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json index b622791f2a6c..381711d3245b 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAssignedAzureAccountsRequest.json @@ -10,9 +10,9 @@ "headers": {}, "body": [ { - "AzureSubscriptionId": "{azure_subscription_id}", - "ResourceGroup": "{resource_group_name}", - "AccountName": "{account_name}" + "azureSubscriptionId": "{azure_subscription_id}", + "resourceGroup": "{resource_group_name}", + "accountName": "{account_name}" } ] } diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json index 5a167a206fe7..d5bd3b4b00ee 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/stats/SuccessfulGetAzureAccountsRequest.json @@ -9,9 +9,9 @@ "headers": {}, "body": [ { - "AzureSubscriptionId": "{azure_subscription_id}", - "ResourceGroup": "{resource_group_name}", - "AccountName": "{account_name}" + "azureSubscriptionId": "{azure_subscription_id}", + "resourceGroup": "{resource_group_name}", + "accountName": "{account_name}" } ] }