Apiary: Export API as JSON, to generate client code
Asked Answered
A

1

9

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/

Ammieammine answered 8/4, 2014 at 19:41 Comment(0)
L
4

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/

Ludewig answered 8/4, 2014 at 19:51 Comment(1)
Alpaca doesn't accept API Blueprint yet. I am working on it though.Pleat

© 2022 - 2024 — McMap. All rights reserved.