From bccaa93815208bff5077c50833ae5b6f794e024a Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Wed, 27 Mar 2019 16:11:24 -0700 Subject: [PATCH 01/12] Add IOT central app templates api in swagger --- .../2018-09-01/examples/Apps_Templates.json | 38 ++++++++ .../stable/2018-09-01/iotcentral.json | 91 +++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json new file mode 100644 index 000000000000..96e8be528333 --- /dev/null +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2018-09-01" + }, + "responses": { + "200": { + "description": "Returns the application templates details", + "headers": { + "code": "200" + }, + "body": { + "value": [ + { + "manifestId": "iotc-default", + "manifestVersion": "1.0.0", + "name": "IoT Central Default template", + "title": "IoT Central Default template", + "order": 1, + "description": "Description for IoT Central Default template" + } + ], + "nextLink": null + }, + "default": { + "description": "Error message returned for an unexpected response", + "headers": {}, + "body": { + "error": { + "code": "Error code", + "message": "Error message", + "target": "Error target" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index 52269cc2dafc..2e705279d41d 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -410,6 +410,43 @@ "deprecated": false } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/appTemplates": { + "get": { + "tags": [ + "Apps" + ], + "description": "Get all available application templates.", + "operationId": "Apps_Templates", + "x-ms-examples": { + "Apps_Templates": { + "$ref": "./examples/Apps_Templates.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + } + ], + "responses": { + "200": { + "description": "The body contains all the of the filtered IoT Central application templates.", + "schema": { + "$ref": "#/definitions/AppTemplatesResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false + } + }, "/providers/Microsoft.IoTCentral/operations": { "get": { "tags": [ @@ -733,6 +770,60 @@ "readOnly": true } } + }, + "AppTemplate": { + "description": "IoT Central Application Template.", + "type": "object", + "properties": { + "manifestId": { + "description": "The ID of the template.", + "type": "string", + "readOnly": true + }, + "manifestVersion": { + "description": "The version of the template.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the template.", + "type": "string", + "readOnly": true + }, + "title": { + "description": "The title of the template.", + "type": "string", + "readOnly": true + }, + "order": { + "description": "The order of the template in the templates list.", + "type": "number", + "readOnly": true + }, + "description": { + "description": "The description of the template.", + "type": "string", + "readOnly": true + } + } + }, + "AppTemplatesResult": { + "description": "A list of IoT Central Application Templates with a next link.", + "type": "object", + "properties": { + "nextLink": { + "description": "The link used to get the next page of IoT Central description objects.", + "type": "string" + }, + "value": { + "description": "A list of IoT Central Application Templates.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/AppTemplate" + } + } + } } }, "parameters": { From 57118f4ece67623419fab8d80c7e89f64d591c51 Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Wed, 27 Mar 2019 16:25:38 -0700 Subject: [PATCH 02/12] Add IOT central app templates api in swagger --- .../stable/2018-09-01/iotcentral.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index 2e705279d41d..b41b3a5b9aa6 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -416,12 +416,15 @@ "Apps" ], "description": "Get all available application templates.", - "operationId": "Apps_Templates", + "operationId": "Apps_ListTemplates", "x-ms-examples": { - "Apps_Templates": { + "Apps_ListTemplates": { "$ref": "./examples/Apps_Templates.json" } }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "parameters": [ { "$ref": "#/parameters/api-version" @@ -622,6 +625,7 @@ "description": "Error details.", "properties": { "error": { + "description": "Error response body.", "x-ms-client-flatten": true, "$ref": "#/definitions/ErrorResponseBody" } From 752211789b15f63fbdb1c0826be94bfd7448fcde Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Fri, 29 Mar 2019 11:07:37 -0700 Subject: [PATCH 03/12] Add IOT central app templates api in swagger --- .../2018-09-01/examples/Apps_Template.json | 36 +++++++++++++ .../stable/2018-09-01/iotcentral.json | 51 ++++++++++++++++++- 2 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Template.json diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Template.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Template.json new file mode 100644 index 000000000000..efe75dde5148 --- /dev/null +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Template.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2018-09-01", + "applicationTemplateId": "iotc-default@1.0.0" + }, + "responses": { + "200": { + "description": "Returns the application templates details", + "headers": { + "code": "200" + }, + "body": { + "value": { + "manifestId": "iotc-default", + "manifestVersion": "1.0.0", + "name": "IoT Central Default template", + "title": "IoT Central Default template", + "order": 1, + "description": "Description for IoT Central Default template" + } + }, + "default": { + "description": "Error message returned for an unexpected response", + "headers": {}, + "body": { + "error": { + "code": "Error code", + "message": "Error message", + "target": "Error target" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index b41b3a5b9aa6..649b41d65369 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -410,7 +410,47 @@ "deprecated": false } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/appTemplates": { + "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/applicationTemplates/{applicationTemplateId}": { + "get": { + "tags": [ + "Apps" + ], + "description": "Get a single application template.", + "operationId": "Apps_Template", + "x-ms-examples": { + "Apps_Template": { + "$ref": "./examples/Apps_Template.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/applicationTemplateId" + } + ], + "responses": { + "200": { + "description": "The body contains the filtered IoT Central application template.", + "schema": { + "$ref": "#/definitions/AppTemplate" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "deprecated": false + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/applicationTemplates": { "get": { "tags": [ "Apps" @@ -816,7 +856,7 @@ "type": "object", "properties": { "nextLink": { - "description": "The link used to get the next page of IoT Central description objects.", + "description": "The link used to get the next page of IoT Central application templates.", "type": "string" }, "value": { @@ -853,6 +893,13 @@ "type": "string", "x-ms-parameter-location": "method" }, + "applicationTemplateId": { + "name": "applicationTemplateId", + "in": "path", + "description": "The combination id of manifestId and manifestVersion of the IoT Central application template.", + "required": true, + "type": "string" + }, "resourceName": { "name": "resourceName", "in": "path", From 082507c238868ecda88f3939d399f3b29cd7357b Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Fri, 29 Mar 2019 11:15:24 -0700 Subject: [PATCH 04/12] Add IOT central app templates api in swagger --- .../Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index 649b41d65369..d908488d69fc 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -898,7 +898,8 @@ "in": "path", "description": "The combination id of manifestId and manifestVersion of the IoT Central application template.", "required": true, - "type": "string" + "type": "string", + "x-ms-parameter-location": "method" }, "resourceName": { "name": "resourceName", From 8b5e3a195fdeb7e8eaed409a80153a16709961d4 Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Mon, 1 Apr 2019 16:46:08 -0700 Subject: [PATCH 05/12] Add IOT central app templates api in swagger --- .../2018-09-01/examples/Apps_Template.json | 36 ------ .../2018-09-01/examples/Apps_Templates.json | 7 +- .../stable/2018-09-01/iotcentral.json | 107 +++++++----------- 3 files changed, 44 insertions(+), 106 deletions(-) delete mode 100644 specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Template.json diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Template.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Template.json deleted file mode 100644 index efe75dde5148..000000000000 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Template.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2018-09-01", - "applicationTemplateId": "iotc-default@1.0.0" - }, - "responses": { - "200": { - "description": "Returns the application templates details", - "headers": { - "code": "200" - }, - "body": { - "value": { - "manifestId": "iotc-default", - "manifestVersion": "1.0.0", - "name": "IoT Central Default template", - "title": "IoT Central Default template", - "order": 1, - "description": "Description for IoT Central Default template" - } - }, - "default": { - "description": "Error message returned for an unexpected response", - "headers": {}, - "body": { - "error": { - "code": "Error code", - "message": "Error message", - "target": "Error target" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json index 96e8be528333..e865d3b56fd4 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json @@ -12,12 +12,17 @@ "body": { "value": [ { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/IoTAppTemplates/templateName", + "type": "Microsoft.IoTCentral/IoTAppTemplates", + "name": "templateName", + "properties": { "manifestId": "iotc-default", "manifestVersion": "1.0.0", - "name": "IoT Central Default template", + "appTemplateName": "IoT Central Default template", "title": "IoT Central Default template", "order": 1, "description": "Description for IoT Central Default template" + } } ], "nextLink": null diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index d908488d69fc..6e9563b2c991 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -410,47 +410,7 @@ "deprecated": false } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/applicationTemplates/{applicationTemplateId}": { - "get": { - "tags": [ - "Apps" - ], - "description": "Get a single application template.", - "operationId": "Apps_Template", - "x-ms-examples": { - "Apps_Template": { - "$ref": "./examples/Apps_Template.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/api-version" - }, - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/applicationTemplateId" - } - ], - "responses": { - "200": { - "description": "The body contains the filtered IoT Central application template.", - "schema": { - "$ref": "#/definitions/AppTemplate" - } - }, - "default": { - "description": "DefaultErrorResponse", - "schema": { - "$ref": "#/definitions/ErrorDetails" - } - } - }, - "deprecated": false - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/applicationTemplates": { + "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTAppTemplates": { "get": { "tags": [ "Apps" @@ -475,7 +435,7 @@ ], "responses": { "200": { - "description": "The body contains all the of the filtered IoT Central application templates.", + "description": "The body contains all the IoT Central application templates.", "schema": { "$ref": "#/definitions/AppTemplatesResult" } @@ -819,33 +779,50 @@ "description": "IoT Central Application Template.", "type": "object", "properties": { - "manifestId": { - "description": "The ID of the template.", - "type": "string", - "readOnly": true - }, - "manifestVersion": { - "description": "The version of the template.", + "id": { + "description": "The application template identifier.", "type": "string", "readOnly": true }, "name": { - "description": "The name of the template.", + "description": "The application template name.", "type": "string", "readOnly": true }, - "title": { - "description": "The title of the template.", - "type": "string", - "readOnly": true - }, - "order": { - "description": "The order of the template in the templates list.", - "type": "number", - "readOnly": true + "properties": { + "manifestId": { + "description": "The ID of the template.", + "type": "string", + "readOnly": true + }, + "manifestVersion": { + "description": "The version of the template.", + "type": "string", + "readOnly": true + }, + "appTemplateName": { + "description": "The name of the template.", + "type": "string", + "readOnly": true + }, + "title": { + "description": "The title of the template.", + "type": "string", + "readOnly": true + }, + "order": { + "description": "The order of the template in the templates list.", + "type": "number", + "readOnly": true + }, + "description": { + "description": "The description of the template.", + "type": "string", + "readOnly": true + } }, - "description": { - "description": "The description of the template.", + "type": { + "description": "the resource type.", "type": "string", "readOnly": true } @@ -893,14 +870,6 @@ "type": "string", "x-ms-parameter-location": "method" }, - "applicationTemplateId": { - "name": "applicationTemplateId", - "in": "path", - "description": "The combination id of manifestId and manifestVersion of the IoT Central application template.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, "resourceName": { "name": "resourceName", "in": "path", From 0f29b0bcc604ba3c29a2865ffe656068ef1268ad Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Mon, 1 Apr 2019 17:27:10 -0700 Subject: [PATCH 06/12] Add IOT central app templates api in swagger --- .../2018-09-01/examples/Apps_Templates.json | 2 +- .../stable/2018-09-01/iotcentral.json | 33 +++---------------- 2 files changed, 5 insertions(+), 30 deletions(-) diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json index e865d3b56fd4..dc3393dc500f 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json @@ -20,7 +20,7 @@ "manifestVersion": "1.0.0", "appTemplateName": "IoT Central Default template", "title": "IoT Central Default template", - "order": 1, + "order": "1", "description": "Description for IoT Central Default template" } } diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index 6e9563b2c991..aca468fbdc6b 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -790,35 +790,10 @@ "readOnly": true }, "properties": { - "manifestId": { - "description": "The ID of the template.", - "type": "string", - "readOnly": true - }, - "manifestVersion": { - "description": "The version of the template.", - "type": "string", - "readOnly": true - }, - "appTemplateName": { - "description": "The name of the template.", - "type": "string", - "readOnly": true - }, - "title": { - "description": "The title of the template.", - "type": "string", - "readOnly": true - }, - "order": { - "description": "The order of the template in the templates list.", - "type": "number", - "readOnly": true - }, - "description": { - "description": "The description of the template.", - "type": "string", - "readOnly": true + "description": "The extra template properties.", + "type": "object", + "additionalProperties": { + "type": "string" } }, "type": { From 7745b03ac8bc3dd4f075b73c9dd4e1bc836af43c Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Tue, 2 Apr 2019 17:43:05 -0700 Subject: [PATCH 07/12] Add IOT central app templates api in swagger --- .../2018-09-01/examples/Apps_Templates.json | 2 +- .../stable/2018-09-01/iotcentral.json | 42 ++++++++++++++++--- 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json index dc3393dc500f..e865d3b56fd4 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json @@ -20,7 +20,7 @@ "manifestVersion": "1.0.0", "appTemplateName": "IoT Central Default template", "title": "IoT Central Default template", - "order": "1", + "order": 1, "description": "Description for IoT Central Default template" } } diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index aca468fbdc6b..49790b420da6 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -775,6 +775,42 @@ } } }, + "AppTemplateProperties": { + "description": "IoT Central Application Template extra properties.", + "type": "object", + "properties": { + "manifestId": { + "description": "The ID of the template.", + "type": "string", + "readOnly": true + }, + "manifestVersion": { + "description": "The version of the template.", + "type": "string", + "readOnly": true + }, + "appTemplateName": { + "description": "The name of the template.", + "type": "string", + "readOnly": true + }, + "title": { + "description": "The title of the template.", + "type": "string", + "readOnly": true + }, + "order": { + "description": "The order of the template in the templates list.", + "type": "number", + "readOnly": true + }, + "description": { + "description": "The description of the template.", + "type": "string", + "readOnly": true + } + } + }, "AppTemplate": { "description": "IoT Central Application Template.", "type": "object", @@ -790,11 +826,7 @@ "readOnly": true }, "properties": { - "description": "The extra template properties.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/definitions/AppTemplateProperties" }, "type": { "description": "the resource type.", From ac2b292a363835a462b70d9584bf9ed034caaf79 Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Thu, 4 Apr 2019 11:28:07 -0700 Subject: [PATCH 08/12] Add IOT central app templates api in swagger --- .../stable/2018-09-01/examples/Apps_Templates.json | 2 +- .../Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json index e865d3b56fd4..acda89c26927 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json @@ -12,7 +12,7 @@ "body": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/IoTAppTemplates/templateName", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/iotAppTemplates/templateName", "type": "Microsoft.IoTCentral/IoTAppTemplates", "name": "templateName", "properties": { diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index 49790b420da6..1bb31c03fe06 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -410,7 +410,7 @@ "deprecated": false } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTAppTemplates": { + "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/iotAppTemplates": { "get": { "tags": [ "Apps" From 66640921aa9ef9577358e42d8c391df9e3ef70f6 Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Fri, 5 Apr 2019 15:44:34 -0700 Subject: [PATCH 09/12] Add IOT central app templates api in swagger --- .../2018-09-01/examples/Apps_Templates.json | 17 ++++------- .../stable/2018-09-01/iotcentral.json | 28 ++----------------- 2 files changed, 8 insertions(+), 37 deletions(-) diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json index acda89c26927..3844e949a632 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json @@ -12,17 +12,12 @@ "body": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/iotAppTemplates/templateName", - "type": "Microsoft.IoTCentral/IoTAppTemplates", - "name": "templateName", - "properties": { - "manifestId": "iotc-default", - "manifestVersion": "1.0.0", - "appTemplateName": "IoT Central Default template", - "title": "IoT Central Default template", - "order": 1, - "description": "Description for IoT Central Default template" - } + "manifestId": "iotc-default", + "manifestVersion": "1.0.0", + "appTemplateName": "IoT Central Default template", + "title": "IoT Central Default template", + "order": 1, + "description": "Description for IoT Central Default template" } ], "nextLink": null diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index 1bb31c03fe06..aa1c8885ecec 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -775,8 +775,8 @@ } } }, - "AppTemplateProperties": { - "description": "IoT Central Application Template extra properties.", + "AppTemplate": { + "description": "IoT Central Application Template.", "type": "object", "properties": { "manifestId": { @@ -811,30 +811,6 @@ } } }, - "AppTemplate": { - "description": "IoT Central Application Template.", - "type": "object", - "properties": { - "id": { - "description": "The application template identifier.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The application template name.", - "type": "string", - "readOnly": true - }, - "properties": { - "$ref": "#/definitions/AppTemplateProperties" - }, - "type": { - "description": "the resource type.", - "type": "string", - "readOnly": true - } - } - }, "AppTemplatesResult": { "description": "A list of IoT Central Application Templates with a next link.", "type": "object", From 8efefea00974cba205037fb4f6aeb091f862797c Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Fri, 5 Apr 2019 17:31:10 -0700 Subject: [PATCH 10/12] Add IOT central app templates api in swagger --- .../stable/2018-09-01/examples/Apps_Templates.json | 6 +++--- .../Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json index 3844e949a632..2b244dee3848 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/examples/Apps_Templates.json @@ -14,10 +14,10 @@ { "manifestId": "iotc-default", "manifestVersion": "1.0.0", - "appTemplateName": "IoT Central Default template", - "title": "IoT Central Default template", + "appTemplateName": "IoT Central Application template", + "title": "IoT Central Application template", "order": 1, - "description": "Description for IoT Central Default template" + "description": "Description for IoT Central Application template" } ], "nextLink": null diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index aa1c8885ecec..9da7a97ef95a 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -410,7 +410,7 @@ "deprecated": false } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/iotAppTemplates": { + "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTAppTemplates": { "get": { "tags": [ "Apps" From e912d4598cda4beb626ed7e33c59ff7bb89ef4d1 Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Mon, 8 Apr 2019 16:58:10 -0700 Subject: [PATCH 11/12] Add IOT central app templates api in swagger --- .../Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index 9da7a97ef95a..c556715d8c2e 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -411,7 +411,7 @@ } }, "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTAppTemplates": { - "get": { + "post": { "tags": [ "Apps" ], From 4fc48948542c87996ffc1db30e5b58f9697e97be Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Wed, 10 Apr 2019 13:41:35 -0700 Subject: [PATCH 12/12] Add IOT central app templates api in swagger --- .../Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index c556715d8c2e..7158083eeff6 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -410,7 +410,7 @@ "deprecated": false } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTAppTemplates": { + "/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/appTemplates": { "post": { "tags": [ "Apps"