onem2m - `child-resource-references` 响应的正确格式是什么?
问题描述
TS-0004 表 7.5.2-2 指出R/6
(检索子资源引用)调用 ( ?fu=1&rcn=6
) 应返回一个m2m:resourceRefList
. 这个对吗?我看到至少有两个开源实现返回m2m:URIList
了这个查询。
是否有任何列出的示例显示查询参数组合的更完整的响应列表?
解决方案
你说的对。fu=1(发现请求)和 rcn=6 应该返回一个 m2m:resourceRefList。如:
{
"m2m:ch": [
{
"nm": "aResource",
"typ": 99,
"val": "cse-in/aResource"
},
{
"nm": "anotherResource",
"typ": 99,
"val": "cse-in/anotherResource"
}
]
}
开发人员指南中有几个示例:https ://www.onem2m.org/developer-guides
推荐阅读
- javascript - 用于提取 href 的 JavaScript 函数
- docker - symfony 和 nginx 的 Docker,无需挂载源代码
- sql - 在 BigQuery 中生成介于最小值和最大值之间的随机数
- elasticsearch - HTTP 主机无效:Kafka ElasticSearch Sink 连接器
- r - 项目未正确添加到 r 中的预分配向量
- javascript - WebRTC - 调用 stop() 后重新启动视频流
- java - 根据需求在线程中创建kafka生产者是不好的做法
- python - 当我尝试将文件上传到 Google Drive 时,我不断收到“MediaFileUpload”对象没有属性“_fd”错误
- c# - 您必须添加对程序集“UnityEngine.AndroidJNIModule”的引用
- machine-learning - 隔离森林背景下的基估计量意义