RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in