|
Re: How to distinguish the "sub-resouce" and "attribute" in xsd schema? [message #1713584 is a reply to message #1713556] |
Thu, 05 November 2015 10:21 |
Francois Aissaoui Messages: 38 Registered: April 2015 |
Member |
|
|
Dear David,
The ETSI M2M resource structure is a Tree. It means that we have a root resource (the SCL) that will have child resources, and each one will also have child resources and so on.
The attributes are value that characterize the actual resource. In your case, the "tns:accessRightID" is the identifier of the accessRight that allow the platform to know if the requester is allowed or not to see, created underneath resources, update the current resource or delete it.
The other element, "tns:accessRightsReference" is the link to the child collection of accessRights. They are child resources of sclBase resource but does not necessarly qualify the sclBase.
Another point is that "references" are set statically depending on the name of the current resource. They are only links to collections of sub-resources. When you perform a GET on the collection pointed by the reference, you will have the list of child resources of the specific type ("sclsReference" for remoteScl, "applicationsReference" for applications, etc.).
At the opposite, attributes are often provided by the user at creation time of the resource. Some attributes are set automatically by the platform.
Hope this can help,
François
|
|
|
Powered by
FUDForum. Page generated in 0.02649 seconds