Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apiary: Export API as JSON, to generate client code

We all know that apiary rocks (or not.. I think it does), and I was wondering what would it take to take it a step further allow users to export a JSON description of the API? (So developers can script client code generation)

This should help: http://ttezel.github.io/blog/2013/02/23/stop-writing-rest-api-clients/

like image 517
Mazyod Avatar asked Apr 08 '14 19:04

Mazyod


1 Answers

There are two directions you can explore:

  • you can use Alpaca to generate client SDKs. Alpaca accepts API Blueprint as one of it's input formats

  • for more flexibility, you can use Snowcrash to parse API Blueprint into JSON - and roll your own code generator.

There are more tools around API Blueprint available at http://apiblueprint.org/

like image 81
zzen Avatar answered Nov 14 '22 01:11

zzen