Tag: api

Amazon fails at REST

Designing in side-effects to GET requests is a fundamental mistake of web development that people who don’t understand the web/http tend to make. It’s less common now than it used to be, but I’m suprised to see it in a web API from one the biggest web properties and doubly surprised to see it called “REST”.

what is it with amazons infatuation with SOAP? how can they be a web company yet develop such lousy “API”s?

Chart API

Today we’re launching the Google Chart API, a really simple tool for creating charts and graphs that are perfect for websites.

Let’s get straight in with an example. This URL:

http://chart.apis.google.com/chart?cht=p3&chd=s:hW&chs=250x100&chl=Hello|World

Creates this image:

That’s it – no state, no calls, just send your data in an http request and get a png image graph back.

neat

GData Write APIs

In a notable but understated move, Google announced yesterday the availability of the GData JavaScript Client Library for Calendar. While on the surface this may seem like just another wrapper for the Google Calendar API like the ones provided for PHP and Java it’s actually a lot more interesting. Why? Because it’s one of the first examples of the next generation client-side APIs: one that doesn’t just let you fetch data, it lets you write data as well.

first js api that allows writes, too. at least for gdata

Google Base API vs. Astoria

I should probably start out by pointing out that the title of this post is a lie. By definition, RESTful protocols can not be truly SQL-like because they depend on Uniform Resource Identifiers (URIs aka URLs) for identifying resources. URIs on the Web are really just URLs and URLs are really just hierarchical paths to a particular resource similar to the paths on your local file system (e.g. /users/mark/bobapples, A:\Temp\car.jpeg). Fundamentally URIs identify a single resource or aset of resources. On the other hand, SQL is primarily about dealing with relational data which meansyou write queries that span multiple tables (i.e. resources). A syntax for addressing single resources (i.e. URLs/URIs) is fundamentally incompatible with a query language that operates over multiple resources. This was one ofthe primary reasons the W3C created XQuery even though we already had XPath.

someone is trying to sell a thick client model here. NEED TO MAINTAIN CLIENT REVENUES