Over a million developers have joined DZone.

Alpaca: Generate Client Libraries for Your API in Ruby, Python, Node.js, and PHP

DZone's Guide to

Alpaca: Generate Client Libraries for Your API in Ruby, Python, Node.js, and PHP

· Web Dev Zone ·
Free Resource

Building real-time chat? Enroll in a Free Course on Mobile Chat Development. 

Another tool for making your API development life easier has emerged on GitHub this week.  The new tool is called Alpaca, and all you do is give it your API definition according to a few parameters and it will build API libraries and documentation in Ruby, Python, PHP, and Node.js.  Pretty sweet.

It's different from Apache Thrift and it does something that the author couldn't find anywhere else–generating client libraries in different programming languages.  It also uses a different format for describing APIs than some of the newer languages like RAML, Blueprint, Swagger, and I/O Docs.  

The author says that his next priority for the project is adding automatic test generation, because that's a large chunk of work that still lingers even if you generate the client library and docs.  

Finally, Alpaca supports three authentication strategies: Basic, Token, and OAuth.

Go try it out if any of these three statements apply to you.

Tired of maintaining API libraries in different languages for your website API? This is for you

You have an API for your website but no API libraries for whatever reason? This is for you

You are planning to build an API for your website and develop API libraries? This is for you

Power realtime chat, IoT and messaging apps at scale. Pubsub realtime messaging, functions, chat, presence, push, notifications, blocks catalog and more.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}