Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
11–20 of 76 posts
Re: Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
#12Am I right in thinking about this like a WSDL, but based on JSON?
But, to do that I need a format using which people can define their API. I used JSON and only supported the elements that I needed to generate the client libraries.
Re: Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
#13Re: Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
#14Am I right in thinking about this like a WSDL, but based on JSON?
Being a WSDL is not the aim here. Generating client libraries in multiple programming languages is. But, to do that I need a format using which people can define their API. I used JSON and only supported the elements that I needed to generate the client libraries.
Re: Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
#15Overall, I'm not sure that the time savings is as big as it first appears, but I think it's great for quick projects.
Re: Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
#16Just tried this out and Alpaca is an awesome tool. However, I'd never want to release this in production without tests. Alpaca doesn't generate tests, so you're back to maintaining the tests for your N different platforms/languages. But you'd have the same problem with its competitors, too; Thrift [0], for instance, doesn't generate tests either. Overall, I'm not sure that the time savings is as big as it first appea…
This current program just a small step in the right direction. :)
EDIT: Currently, I have a test suite at https://github.com/pksunkara/alpaca/tree/testing which tests the generated client libraries of an example API with the respective server.