-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1601,7 +1601,7 @@ | |
"/twins/{deviceId}/methods": { | ||
"post": { | ||
"summary": "Invoke a direct method on a device.", | ||
"description": "Invoke a direct method on a device. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-direct-methods for more information.", | ||
"description": "Invoke a direct method on a device.", | ||
"operationId": "DeviceMethod_InvokeDeviceMethod", | ||
"consumes": [ | ||
"application/json" | ||
|
@@ -1613,12 +1613,14 @@ | |
{ | ||
"name": "deviceId", | ||
"in": "path", | ||
"description": "The ID of the device on which the direct method is to be invoked.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "directMethodRequest", | ||
"in": "body", | ||
"description": "Parameters to execute a direct method on the device.", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/CloudToDeviceMethod" | ||
|
@@ -1630,7 +1632,7 @@ | |
], | ||
"responses": { | ||
"200": { | ||
"description": "Returns the method response payload", | ||
"description": "Returns the direct method response payload.", | ||
"schema": { | ||
"$ref": "#/definitions/CloudToDeviceMethodResult" | ||
} | ||
|
@@ -1641,7 +1643,7 @@ | |
"/twins/{deviceId}/modules/{moduleId}/methods": { | ||
"post": { | ||
"summary": "Invoke a direct method on a module of a device.", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
abhipsaMisra
Author
Member
|
||
"description": "Invoke a direct method on a module of a device. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-direct-methods for more information", | ||
"description": "Invoke a direct method on a module of a device.", | ||
"operationId": "DeviceMethod_InvokeModuleMethod", | ||
"consumes": [ | ||
"application/json" | ||
|
@@ -1653,18 +1655,21 @@ | |
{ | ||
"name": "deviceId", | ||
"in": "path", | ||
"description": "The ID of the device on whose module the direct method is to be invoked.", | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "moduleId", | ||
"in": "path", | ||
"description": "The ID of the module on which the direct method is to be invoked.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "directMethodRequest", | ||
"in": "body", | ||
"description": "Parameters to execute a direct method on the module.", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/CloudToDeviceMethod" | ||
|
@@ -1676,7 +1681,7 @@ | |
], | ||
"responses": { | ||
"200": { | ||
"description": "Returns the method response payload", | ||
"description": "Returns the direct method response payload.", | ||
"schema": { | ||
"$ref": "#/definitions/CloudToDeviceMethodResult" | ||
} | ||
|
@@ -2820,22 +2825,24 @@ | |
} | ||
}, | ||
"CloudToDeviceMethod": { | ||
"description": "Parameters to execute a direct method on the device", | ||
"description": "Parameters to execute a direct method on the device.", | ||
"type": "object", | ||
"properties": { | ||
"methodName": { | ||
"description": "Method to run", | ||
"description": "Name of the method which is to be executed.", | ||
"type": "string" | ||
}, | ||
"payload": { | ||
"description": "Payload", | ||
"description": "The JSON-formatted direct method payload, up to 128kb in size.", | ||
"type": "object" | ||
}, | ||
"responseTimeoutInSeconds": { | ||
"description": "Timeout for the method invocation to return a response, defaults to 30 seconds. Minimum allowed value is 5 seconds, maximum allowed value is 300 seconds.", | ||
This comment has been minimized.
Sorry, something went wrong.
timtay-microsoft
Member
|
||
"format": "int32", | ||
"type": "integer" | ||
}, | ||
"connectTimeoutInSeconds": { | ||
"description": "Timeout for the device to come online; defaults to 0, meaning the device must already be online. Maximum allowed value is 300 seconds.", | ||
"format": "int32", | ||
"type": "integer" | ||
} | ||
|
@@ -3038,11 +3045,11 @@ | |
"properties": { | ||
"status": { | ||
"format": "int32", | ||
"description": "Method invocation result status.", | ||
"description": "Method invocation result status, provided by the device.", | ||
"type": "integer" | ||
}, | ||
"payload": { | ||
"description": "Method invocation result payload.", | ||
"description": "The JSON-formatted direct method result payload, up to 128kb in size; provided by the device.", | ||
"type": "object" | ||
} | ||
} | ||
|
My PR goes into this as well, but these summary tags are pretty useless. The description tags are what get put in the method headers, whereas the summary tags aren't anywhere to be seen. I've been getting rid of the summary tags when they are just repeats of the description tag. Do you feel like this is a good idea to do here, too?