首页 > 解决方案 > `child-resource-references` 响应的正确格式是什么?

问题描述

TS-0004 表 7.5.2-2 指出R/6(检索子资源引用)调用 ( ?fu=1&rcn=6) 应返回一个m2m:resourceRefList. 这个对吗?我看到至少有两个开源实现返回m2m:URIList了这个查询。

是否有任何列出的示例显示查询参数组合的更完整的响应列表?

标签: onem2m

解决方案


你说的对。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


推荐阅读