Skip to content

Commit

Permalink
small updates (#10254)
Browse files Browse the repository at this point in the history
  • Loading branch information
viv-liu authored Jul 28, 2020
1 parent 69a5085 commit c18564b
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"title": "Get an application by Id",
"description": "Get an application by Id.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"application_id": "194e282c-290a-4858-b68f-4274690697fc"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"title": "List applications",
"description": "List applications that are accessible to the signed-in user.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain"
},
"parameters": {},
"responses": {
"200": {
"body": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"responses": {
"200": {
"body": {
"idScope": "<idScope>",
"idScope": "<ID scope>",
"symmetricKey": {
"primaryKey": "XaMfV3vryCQw963L2IALf1SdApQRzSIBQd13/fassqM=",
"secondaryKey": "s+4uT31TRZJcTSGxZUPZb1yznjTicu4jr9tXNrg+xIQ="
"primaryKey": "<primary key>",
"secondaryKey": "<secondary key>"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"body": {
"type": "SymmetricKeyAttestation",
"symmetricKey": {
"primaryKey": "XaMfV3vryCQw963L2IALf1SdApQRzSIBQd13/fassqM=",
"secondaryKey": "s+4uT31TRZJcTSGxZUPZb1yznjTicu4jr9tXNrg+xIQ="
"primaryKey": "<primary key>",
"secondaryKey": "<secondary key>"
}
}
},
Expand All @@ -18,8 +18,8 @@
"body": {
"type": "SymmetricKeyAttestation",
"symmetricKey": {
"primaryKey": "XaMfV3vryCQw963L2IALf1SdApQRzSIBQd13/fassqM=",
"secondaryKey": "s+4uT31TRZJcTSGxZUPZb1yznjTicu4jr9tXNrg+xIQ="
"primaryKey": "<primary key>",
"secondaryKey": "<secondary key>"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"body": {
"type": "TpmAttestation",
"tpm": {
"endorsementKey": "AToAAQALAAMAsgAgg3GXZ0SEs/gakMyNRqXXJP1S124GUgtk8qHaGzMUaaoABgCAAEMAEAgAAAAAAAEAxsj2gUScTk1UjuioeTlfGYZrrimExB+bScH75adUMRIi2UOMxG1kw4y+9RW/IVoMl4e620VxZad0ARX2gUqVjYO7KPVt3dyKhZS3dkcvfBisBhP1XH9B33VqHG9SHnbnQXdBUaCgKAfxome8UmBKfe+naTsE5fkvjb/do3/dD6l4sGBwFCnKRdln4XpM03zLpoHFao8zOwt8l/uP3qUIxmCYv9A7m69Ms+5/pCkTu/rK4mRDsfhZ0QLfbzVI6zQFOKF/rwsfBtFeWlWtcuJMKlXdD8TXWElTzgh7JS4qhFzreL0c1mI0GCj+Aws0usZh7dLIVPnlgZcBhgy1SSDQMQ=="
"endorsementKey": "<endorsement key>"
}
}
},
Expand All @@ -17,7 +17,7 @@
"body": {
"type": "TpmAttestation",
"tpm": {
"endorsementKey": "AToAAQALAAMAsgAgg3GXZ0SEs/gakMyNRqXXJP1S124GUgtk8qHaGzMUaaoABgCAAEMAEAgAAAAAAAEAxsj2gUScTk1UjuioeTlfGYZrrimExB+bScH75adUMRIi2UOMxG1kw4y+9RW/IVoMl4e620VxZad0ARX2gUqVjYO7KPVt3dyKhZS3dkcvfBisBhP1XH9B33VqHG9SHnbnQXdBUaCgKAfxome8UmBKfe+naTsE5fkvjb/do3/dD6l4sGBwFCnKRdln4XpM03zLpoHFao8zOwt8l/uP3qUIxmCYv9A7m69Ms+5/pCkTu/rK4mRDsfhZ0QLfbzVI6zQFOKF/rwsfBtFeWlWtcuJMKlXdD8TXWElTzgh7JS4qhFzreL0c1mI0GCj+Aws0usZh7dLIVPnlgZcBhgy1SSDQMQ=="
"endorsementKey": "<endorsement key>"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Get device properties",
"description": "Get the current values of all device properties.",
"description": "Get the current values of all device properties. Properties that have never been set by the device or by a user or API request will not be returned.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
Expand All @@ -11,13 +11,29 @@
"body": {
"deviceinfo": {
"manufacturer": "manufacturer",
"$metadata": {
"manufacturer": {
"lastUpdateTime": "2020-07-21T19:06:50.9718608Z"
},
"model": {
"lastUpdateTime": "2020-07-21T19:06:50.9718608Z"
},
"swVersion": {
"lastUpdateTime": "2020-07-21T19:06:50.9718608Z"
}
},
"model": "model",
"swVersion": "swVersion",
"osName": "osName",
"processorArchitecture": "processorArchitecture",
"processorManufacturer": "processorManufacturer",
"totalStorage": 41,
"totalMemory": 49
"swVersion": "swVersion"
},
"settings": {
"fanSpeed": 12.5,
"$metadata": {
"fanSpeed": {
"desiredValue": 30,
"desiredVersion": 2,
"lastUpdateTime": "2020-07-21T19:06:50.9718608Z"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,24 @@
"subdomain": "appsubdomain",
"device_id": "mx1",
"body": {
"device_info": {
"manufacturer": "manufacturer",
"model": "model",
"swVersion": "swVersion",
"osName": "osName",
"processorArchitecture": "processorArchitecture",
"processorManufacturer": "processorManufacturer",
"totalStorage": 24,
"totalMemory": 18
"settings": {
"voltage": 25,
"current": 7
}
}
},
"responses": {
"202": {
"body": {
"deviceinfo": {
"manufacturer": "TODO",
"model": "model",
"swVersion": "swVersion",
"osName": "osName",
"processorArchitecture": "processorArchitecture",
"processorManufacturer": "processorManufacturer",
"totalStorage": 41,
"totalMemory": 49
"settings": {
"$metadata": {
"voltage": {
"desiredValue": 25
},
"current": {
"desiredValue": 7
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Create a device template",
"description": "Creates and publishes a device template. In the body, specify the full device template object.",
"description": "Creates and publishes a device template. In the body, specify the full device template object. Default views will be automatically generated.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
Expand Down Expand Up @@ -39,7 +39,7 @@
"displayName": "Temperature",
"name": "Temperature",
"schema": "double",
"unit": "Units/Temperature/celsius"
"unit": "celsius"
},
{
"@id": "urn:storeAnalyticsCheckoutPnp:Interface:Humidity:1",
Expand All @@ -50,7 +50,7 @@
"displayName": "Humidity",
"name": "Humidity",
"schema": "double",
"unit": "Units/Humidity/percent"
"unit": "percent"
},
{
"@id": "urn:storeAnalyticsCheckoutPnp:Interface:Occupancy:1",
Expand Down Expand Up @@ -110,7 +110,7 @@
"displayName": "Temperature",
"name": "Temperature",
"schema": "double",
"unit": "Units/Temperature/celsius"
"unit": "celsius"
},
{
"@id": "urn:storeAnalyticsCheckoutPnp:Interface:Humidity:1",
Expand All @@ -121,7 +121,7 @@
"displayName": "Humidity",
"name": "Humidity",
"schema": "double",
"unit": "Units/Humidity/percent"
"unit": "percent"
},
{
"@id": "urn:storeAnalyticsCheckoutPnp:Interface:Occupancy:1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,6 @@
"description": "Display name of the device.",
"type": "string"
},
"description": {
"description": "Detailed description of the device.",
"type": "string"
},
"instanceOf": {
"description": "The device template definition for the device.",
"type": "string"
Expand Down Expand Up @@ -504,7 +500,8 @@
"properties": {
"email": {
"description": "Email address of the user.",
"type": "string"
"type": "string",
"format": "email"
}
},
"required": [
Expand Down Expand Up @@ -1186,7 +1183,7 @@
"/apiTokens": {
"get": {
"operationId": "ApiTokens_List",
"summary": "Get the list of API tokens in an application.",
"summary": "Get the list of API tokens in an application. The token value will never be returned for security reasons.",
"x-ms-examples": {
"List API tokens": {
"$ref": "./examples/apitoken_list.json"
Expand Down Expand Up @@ -1234,7 +1231,7 @@
},
"put": {
"operationId": "ApiTokens_Set",
"summary": "Create a new API token in the application.",
"summary": "Create a new API token in the application to use in the IoT Central public API. The token value will be returned in the response, and won't be returned again in subsequent requests.",
"x-ms-examples": {
"Create API token": {
"$ref": "./examples/apitoken_create.json"
Expand Down Expand Up @@ -1446,7 +1443,7 @@
},
"put": {
"operationId": "DeviceTemplates_Set",
"summary": "Create or update a device template",
"summary": "Publish a new device template or update the cloud properties and overrides of an existing device template. Default views will be automatically generated for new device templates created this way.",
"x-ms-examples": {
"Create a device template": {
"$ref": "./examples/devicetemplates_create.json"
Expand Down Expand Up @@ -1943,6 +1940,7 @@
"get": {
"operationId": "Devices_GetComponentTelemetryValue",
"summary": "Get device telemetry value",
"description": "Get the last telemetry value from a device.",
"x-ms-examples": {
"Get telemetry": {
"$ref": "./examples/devices_telemetry_get.json"
Expand Down Expand Up @@ -2192,6 +2190,7 @@
"get": {
"operationId": "Devices_GetModuleComponentTelemetryValue",
"summary": "Get module telemetry value",
"description": "Get the last telemetry value from a module.",
"x-ms-examples": {
"Get telemetry from module": {
"$ref": "./examples/modules_telemetry_get.json"
Expand Down

0 comments on commit c18564b

Please sign in to comment.