RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

beer.db JSON HTTP API Sample w/ Sinatra - GET /beer/guinness - Cheers, Prost

I have created a little JSON API service for the open beer database (that is, beer.db) using the Sinatra Ruby gem. For example, /brewery/brooklyn gets you all beers from the Brooklyn Brewing Co. in New York and /beer/guinness gets you a pint of Guinness (sorry no real irish stout, just the data in JSON ;-). See the JSON API start page or the service source code or the beer.db project page for more info. Cheers. Prost.


Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!