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.