onem2m

What is the correct format for `child-resource-references` responses?


TS-0004 Table 7.5.2-2 states that the R/6 (retrieve child-resource-references) call (?fu=1&rcn=6) should return an m2m:resourceRefList. Is this correct? At least two open-source implementations i have seen return m2m:URIList for this query.

Is there anywhere listed examples that show a more complete list of responses for combinations of query parameters?


Solution

  • You are right. fu=1 (discovery request) and rcn=6 should return a m2m:resourceRefList. Such as:

    {
        "m2m:ch": [
            {
                "nm": "aResource",
                "typ": 99,
                "val": "cse-in/aResource"
            },
            {
                "nm": "anotherResource",
                "typ": 99,
                "val": "cse-in/anotherResource"
            }
        ]
    }
    

    There are a couple of examples in the developer guides: https://www.onem2m.org/developer-guides