Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.IoTCentral to add versio…
Browse files Browse the repository at this point in the history
…n 2018-09-01 (#5495)

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger

* Add IOT central app templates api in swagger
  • Loading branch information
kawayiboy authored and sergey-shandar committed Apr 17, 2019
1 parent e335049 commit cd273ca
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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",
"appTemplateName": "IoT Central Application template",
"title": "IoT Central Application template",
"order": 1,
"description": "Description for IoT Central Application template"
}
],
"nextLink": null
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,46 @@
"deprecated": false
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/appTemplates": {
"post": {
"tags": [
"Apps"
],
"description": "Get all available application templates.",
"operationId": "Apps_ListTemplates",
"x-ms-examples": {
"Apps_ListTemplates": {
"$ref": "./examples/Apps_Templates.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"parameters": [
{
"$ref": "#/parameters/api-version"
},
{
"$ref": "#/parameters/subscriptionId"
}
],
"responses": {
"200": {
"description": "The body contains all the IoT Central application templates.",
"schema": {
"$ref": "#/definitions/AppTemplatesResult"
}
},
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
}
},
"deprecated": false
}
},
"/providers/Microsoft.IoTCentral/operations": {
"get": {
"tags": [
Expand Down Expand Up @@ -585,6 +625,7 @@
"description": "Error details.",
"properties": {
"error": {
"description": "Error response body.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/ErrorResponseBody"
}
Expand Down Expand Up @@ -733,6 +774,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
},
"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
}
}
},
"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 application templates.",
"type": "string"
},
"value": {
"description": "A list of IoT Central Application Templates.",
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/AppTemplate"
}
}
}
}
},
"parameters": {
Expand Down

0 comments on commit cd273ca

Please sign in to comment.