[haiku-depot-web] API Service Description to Stubs for C++

  • From: Andrew Lindesay <apl@xxxxxxxxxxxxxx>
  • To: haiku-depot-web@xxxxxxxxxxxxx
  • Date: Thu, 27 Nov 2014 07:39:19 +1300

Hello Stephan;

I'm looking at a means of getting the application-server to generate a "service description" that contains the endpoints and methods of the API. This has worked out quite well in draft form [1] -- warning; work in progress still!

From the service description, it should be possible to render (python script perhaps?) this JSON into a set of C++ stubs so that you do not need to marshall the JSON-RPC envelopes by hand. Do you think this would help you out with engineering the desktop application?

cheers.

[1] http://www.silvereye.co.nz/tmp/sd.json

--
Andrew Lindesay

Other related posts: