物模型
更新时间: 2023-04-19
# 导入物模型描述
# 基本信息
Path: /v1/products/:instanceId/:productKey/features/batch
Method: POST
接口描述: 请求参数格式与获取物模型接口返回结果格式一致
# 请求参数
路径参数
参数名称 | 示例 | 备注 |
---|---|---|
instanceId | ||
productKey |
Body
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
properties | object | 非必须 | 一个字段代表一个属性,其中字段名为属性名 | ||
├─ propertyName1 | object | 非必须 | |||
├─ displayName | string | 非必须 | |||
├─ description | string | 非必须 | |||
├─ dataSchema | object | 非必须 | |||
├─ @type | string | 非必须 | |||
├─ writable | boolean | 非必须 | |||
├─ unit | string | 非必须 | |||
├─ @id | string | 非必须 | |||
├─ @type | string [] | 非必须 | |||
├─ | 非必须 | ||||
commands | object | 非必须 | 一个字段代表一个命令,其中字段名为命令名 | ||
├─ commandName1 | object | 非必须 | |||
├─ displayName | string | 非必须 | |||
├─ description | string | 非必须 | |||
├─ @id | string | 非必须 | |||
├─ @type | string | 非必须 | |||
events | object | 非必须 | 一个字段代表一个事件,其中字段名为事件名 | ||
├─ eventName1 | object | 非必须 | |||
├─ displayName | string | 非必须 | |||
├─ description | string | 非必须 | |||
├─ @id | string | 非必须 | |||
├─ @type | string | 非必须 | |||
@id | string | 非必须 | |||
@context | string [] | 非必须 | |||
├─ | 非必须 |
# 返回数据
无
# 获取物模型描述
# 基本信息
Path: /v1/products/:instanceId/:productKey/features/detail
Method: POST
接口描述:
# 请求参数
路径参数
参数名称 | 示例 | 备注 |
---|---|---|
instanceId | ||
productKey |
# 返回数据
{
"@id": "dtml:Light;1",
"@context": [
"dtml:context:thing;1"
]
}