Enterprise Integration Zone is brought to you in partnership with:

I’ve been a Windows developer since 3.0 and caught the Visual Basic wave early with v1. I’ve released a “production” application in every version of VB since then (except VB for DOS). Focusing on enterprise, line-of-business development I’ve built Call Center Applications, Mortgage finance systems, Customer Relationship Management tools and more recently I’ve been in the Litigation Support/Electronic Data Discovery/Electronically Stored Information space. Greg is a DZone MVB and is not an employee of DZone and has posted 475 posts at DZone. You can read more from them at their website. View Full User Profile

Introducing REST JSON/JSONP "Open Beer Database" API!

01.03.2013
| 5275 views |
  • submit to reddit

Visual Studio Magazine - Beer? There's an API for that!

I've been fooling around with REST services, getting JSON data back from free online sources and displaying it in Web or Windows Store apps via a ListView or FlipView, and so on.

After experimenting with the Windows Azure Mobile Services, which simplifies the back-end data-access process and lets you easily set up your own services, I was trying out other APIs and just had to pass on my latest discovery: beer.

Yup, there's an Open Beer Database, described as "a free, public database and API for beer information." Now, that's my kind of information ...

Anyway, note that the Open Beer API "is currently a work-in-progress and is subject to change without notice." It returns data in JSON or JSONP (to work around cross-domain calls). It provides the usual CRUD operations via HTTP verbs GET, POST, PUT and DELETE and lets you retrieve breweries or beers, both as aggregates or singly by ID number.

..."

Open Beer Database

The API is currently a work-in-progress and is subject to change without notice.

Overview

Caching

Currently no requests are cached.

Rate Limit

The API is not currently rate limited. Please use good judgment when designing your application.

Responses

Currently the only supported formats are JSON (application/json) and JSONP (text/javascript).

Public Token

A public token has read-only access.

Private Token

A private token has read and write access.

image

Open Beer Database - Displaying Breweries via JSONP

image

Beer! REST API! Beer!

Published at DZone with permission of Greg Duncan, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)