API wrapper best practices?
joel at fysh.org
Sun Mar 24 13:26:42 GMT 2013
On 24 March 2013 14:13, Ashley Hindmarsh <ash+perl at best-scarper.co.uk> wrote:
> I guess the holy grail is something that takes the API schema and builds
> the classes on-the-fly
I don't know about holy grails but there's SPORE  which lets you
describe RESTful APIs and automatically generate clients for them in
different languages. There's a Perl implementation  but also
implementations for Ruby, Python, JS, Node.js among others.
If Dave's use case involves an API which can be modelled as a SPORE
specification then it might suit him well - it handles the http client
and call semantics parts, handing back perl hashrefs of the returned
More information about the london.pm