Stand up simple APIs for consumption.
Apiary let's you use any existing class and turn it into an API. For instance, say you have a class like this.
class Temperature def c2f(val) Float(val) * 9 / 5 + 32 end end
You can convert this to an API by annotating this class with three lines.
class Temperature include Apiary version '1.0' get def c2f(val) Float(val) * 9 / 5 + 32 end end
Now, your API is complete! You can run this with
Temperature.run. This will create a server on port 3000. You can hit it with
And you'll get back