Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore using alpaca to create a revision 1.1 client library #20

Closed
mjallday opened this issue Jan 8, 2014 · 4 comments
Closed

Explore using alpaca to create a revision 1.1 client library #20

mjallday opened this issue Jan 8, 2014 · 4 comments

Comments

@mjallday
Copy link
Contributor

mjallday commented Jan 8, 2014

Alpaca is a program for generating client libraries in various languages.

This could be a great thing for Balanced since all our client libraries are essentially mirrors of the links provided by the API.

We could test this out with the node.js implementation and if that works expand it out to other languages.

@mjallday
Copy link
Contributor Author

mjallday commented Jan 8, 2014

@pksunkara @mahmoudimus what do you guys think of this idea? The node client seems like a good starting point for trying this out.

@pksunkara
Copy link

I actually have a test suite at https://github.com/pksunkara/alpaca/tree/testing which tests a sample API on an sample server with all client libraries. They are all passing.

So, the generated client libraries dont need any tests if you plan to keep using alpaca. Probably the only bugs you guys can make is in the api.json.

@pksunkara
Copy link

By the way, I initially wanted to use Balanced as the example for alpaca, but there were some inconsistencies in the API reference and after some poking around I went with Buffer.

@pksunkara
Copy link

https://github.com/pksunkara/alpaca/blob/master/examples/balanced/api.json
https://github.com/pksunkara/alpaca/blob/master/examples/balanced/doc.json

I wrote a sample api.json and doc.json for Bank Accounts api.

According to that, all four create, list, retrieve, destroy methods are in bank_account class of the api.

But I think, ideally, create and list methods should be in a separate class than retrieve and destroy. I leave the choice to you guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants