Hello developers. I was studying this concept from more sources and to be honest, I don't understand it.
OIC specification: An interface provides view into the resource and then defines the requests and responses permissible on that view of the Resource. One resource can support multiple interfaces - multiple views. Based on the interface provided in query, subset or all properties of that resource are replied in response. Okay, but how is interface linked with the property of the resource? If you check oneiota, definition of resource contains only list of interfaces and list of properties. There is no link between property and interface. How can be then defined and specified what property is returned for which interface/view? Another missing point is who is responsible for this functionality and mapping. Is it provided out of box? If yes, how is it mapped? If not, is it up to developer of server that he will implement checking of interface in query params and based on it he will provide response on his own? (e.g. if interface is oic.if.r then return property a d e). Is there something provided out of box? For example checking if method can be used with that interface in query? (e.g. doing POST with oic.if.s in query param). Is it rejected directly by IoTivity? If you answer yes or no, specification of resource (oneiota) is lacking this view level in both cases. From what I saw, you are not able to define what properties are returned for which interface/view. There is no possibility to define such a mapping. You can only provide examples of requests, but to cover all interfaces and all methods is not a right solution. Thanks for answers. Regards Ondrej Tomcik -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170416/202bc35a/attachment.html>
