“ child-resource-references”响应的正确格式是什么?

时间:2020-06-09 04:15:03

标签: onem2m

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

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

1 个答案:

答案 0 :(得分:1)

您是对的。 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

相关问题