<div id="mb_0"><div>Greetings,<br> while writing a small application I decided that I'd like to have REST like set of interfaces published through dbus.<br><br>
Consider an application that manages 3 kind of objects, each instance
having a unique ID and a set of attributes and and some methods. I'd
like to expose each of these instances through an interface, while
having a single main interface that has holds some functionality for
the service itself. <br> This would make four interfaces:<br> /my/application/MainInterface/ <br> - Exit( in='', out='')<br> - Status( in='', out='s')<br> - ListTypeA(in='', out='a(is)')
<br> - ListTypeB(in='', out='a(is)')<br> - ListTypeC(in='', out='a(is)')<br>
/my/application/TypeA/<br> - new(in='ssss', out='i')<br> /my/application/TypeA/id1/<br> - Delete(in='', out='')<br> - GetAttributes(in='', out='ssss')<br>
- SetAttributes(in='ssss', out='')
<br> - DoSomething(in='ss', out='b')<br> /my/application/TypeA/id2/<br> - Delete(in='', out='')<br> - GetAttributes(in='', out='ssss')<br> - SetAttributes(in='ssss', out='')
<br> - DoSomething(in='ss', out='b')<br>
... similiar for TypeB and TypeC<br> <br> Now my question: Is publishing such a REST interface feasible with dbus?<br><br> I'd expect about a dozen instances of each type, so a total of less than 40 interfaces would be created, is this too much?
<br><br> Furthermore, I'd really appreciate some help on how to code this in python ...<br><br>Best regards,<br><br>Andreas<br>
</div>
</div>