通过id查询单个控制设备信息
GET
https://ws.25soft.com/api-web-v1/operates/{id}
请求参数
Path 参数
id
string
必需
示例值:
601372e3bce064001cdf96a8
Header 参数
Authorization
string
可选
示例值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://ws.25soft.com/api-web-v1/operates/601372e3bce064001cdf96a8' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
number
是否成功
data
object
返回数据
total
number
可选
rows
array [object {22}]
当前返回的设备对象列表
示例
{
"code": 0,
"data": {
"total": 517,
"rows": [
{
"line": false,
"value": null,
"valueStr": null,
"_id": "6454d2bf5f11cf1a3221c7d8",
"canRead": false,
"name": "负载开关",
"icon": null,
"uiTemplate": null,
"uiModel": null,
"interval": null,
"sort": null,
"control": "5feaed768c1afe001bca0f3f",
"shortAddress": "02",
"parentName": "Hardware",
"parent": "6446566f00c14b120e0bb948",
"creator": "5da994550dc418001b95d36f",
"createdAt": "2023-05-05T09:56:15.921Z",
"updatedAt": "2023-05-05T09:56:15.921Z",
"__v": 0
},
{
"line": false,
"value": null,
"valueStr": null,
"_id": "6454d2bf5f11cfc33e21c7d5",
"canRead": false,
"name": "远程模式开关",
"icon": null,
"uiTemplate": null,
"uiModel": null,
"interval": null,
"sort": null,
"control": "5feaed768c1afe001bca0f3f",
"shortAddress": "01",
"parentName": "Hardware",
"parent": "6446566f00c14b120e0bb948",
"creator": "5da994550dc418001b95d36f",
"createdAt": "2023-05-05T09:56:15.841Z",
"updatedAt": "2023-05-05T09:56:15.841Z",
"__v": 0
}
]
}
}