Hi Bart,
Do you need this on client or server side?
On client side, it is possible to get interface definitions from the
server in .piqi, JSON, XML and Protocol Buffers format by making an
HTTP GET call against the service URL and specifying the desired
return type in the "Accept" header. It is documented here:
http://piqi.org/doc/piqi-rpc/#gettingpiqispecificationfromarunningpiqirpcservice
It is also possible for the server applications to access their type
definitions. This functionality is not exposed directly, but it is
available. Basically, this is the same mechanism used to return the
list of Piqi modules to the clients. You can follow the code to see
how it works starting from this point:
https://github.com/alavrik/piqi/blob/dev/piqi-rpc/src/piqi_rpc_webmachine_resource.erl#L270
There's one caveat. The way Piqi definitions are represented in
external formats (JSON, XML, Protobuf) will change in the new 0.6.0
version (I'm going to release in a couple of weeks). The good thing is
that it is unlikely to change in a backward-incompatible way in future
versions following 0.6.0
Anton
On Tue, Jan 15, 2013 at 2:08 AM, bart van deenen