The Best Web APIs are Web Sites

50 %
50 %
Information about The Best Web APIs are Web Sites

Published on October 23, 2008

Author: psd




A Web Friendly API?

Javascript AJAX Python Ruby PHP Perl Curl

One Thing in common ...


But !OVE The Web

URIs identify things

and they can be anywhere ..

use cool URIs

read RFC 2616



understand HTTP methods method safe idempotent semantics resource cacheable ----------------------------------------------------------- GET | X X X X X | HEAD | X X X X X | PUT | X X X | POST | * | DELETE | X X X | OPTIONS | X X X | ----------------------------------------------------------- PROPFIND | X X X X * | PROPPATCH | X X X | MKCOL | * X X | COPY | X X X | MOVE | ? X X | LOCK | X X | UNLOCK | X X X | PATCH | * X X | -----------------------------------------------------------

think about representations • HTML • RSS/Atom • XML • JSON • whatever

Warning! You are about to see Naked Protocol Headers

Content-Negotiation HTTP GET: Accept: application/weatherml+xml; q=1.0, application/xml; q=0.8, text/html; q=0.5 Apache Server .htaccess: AddType application/weatherml+xml wea Options +MultiViews ./index.wea ./index.xml ./index.html

enjoy the free caching HTTP GET If-Modified-Since: Fri, 31 Dec 1999 23:59:59 GMT If-None-Match: 'guid-21343244324' ! HTTP/1.1 412 Precondition Failed

make Phone Call HTTP POST Content-Type: application/x-www-form-urlencoded Accept: text/xml; charset=utf-8 callingParty=tel:+447918808 calledParty=sip:Merlin ! HTTP 1.1 201 Created Location: Content-Type: text/xml; charset=utf-8 <callInfo> <callId></callId> <callStatus>Initial</callStatus> </callInfo>

get Call Info HTTP GET Accept: text/xml ! 200 OK Content-Type: text/xml; charset=utf-8 <callInfo> <callId> <callStatus> CallInitial </callStatus> <callingParty> tel:+447918880... <calledParty> tel:+447918880... <timeStarted> 2007-01-09 11:45:20 <duration> 502 <terminationStatus> CallNotTerminated </callInfo>

end Call HTTP POST Content-Type: application/x-www-form-urlencoded callStatus=Terminated ! 202 Accepted Location:

list Recent Calls HTTP GET ! 200 OK Content-Type: application/atom+xml <feed xmlns=quot;;> <title>Phonebox Calls</title> <link rel=quot;selfquot; href=quot;; rel=quot;alternatequot; type=quot;text/htmlquot;/> <updated>2007-01-0911:45:02Z</updated> <author><name>Phonebox</name></author> <id>,2007-01-09:/calls</id> <entry> <link href=quot;;/> <title>Call 1234567</title> <id></id> <summary>CallInformation</summary> <updated>2005-10-13T18:30:02Z</updated> </entry> <entry> <link href=quot;;/> ...

Overall ....

Yes, Dear Reader, there's no API as such it's just yet another Web site ..

Surf long and prosper ..

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages ... 0131463071 Jul 29, 2015 Documents blackstile
Read more

Top 10 Web APIs — Bridging Today’s Technology - WebDAM

Top 10 Web APIs — Bridging Today’s Technology. Share. Tweet. Ron ... social media sites, ... Our list of best APIs ranges across many types of features ...
Read more

APIs Dashboard | ProgrammableWeb

View the newest or most popular APIs and API categories in the ProgrammableWeb directory, the largest, ... On the Web. John Piela. Financial. 21 hours ago.
Read more

The Top 15 Web APIs For Your Site | Pingable

Pingback: Dating Services » The Top 15 Web APIs For Your Site
Read more

40 useful APIs for web designers and developers ...

Google offers dozens of APIs for web designers and developers. ... the standard web interface tools ... APIs do you use? Are there any sites you’d like ...
Read more

ProgrammableWeb - APIs, Mashups and the Web as Platform

... chronicling the evolution of the global API economy & providing the web’s most ... Twelve APIs have been added to the ProgrammableWeb directory ...
Read more

Web API - Wikipedia, the free encyclopedia

A web API is an application programming interface (API) for either a web server or a web browser. ... "Web APIs". Google Chrome. "Web API reference ...
Read more

50 Most Useful APIs for Developers - Computer Science Zone

Home » Computer Science » 50 Most Useful APIs for ... and are largely how data gets shared across the web. ... Google APIs support most modern sites ...
Read more


Using Web API with ASP.NET Web Forms. ... Designing Evolvable Web APIs with ASP.NET. by Glenn Block, Pablo Cibraro, Pedro Felix, Howard Dierking, ...
Read more

hosting : hosting-aspnet-web-api - The ASP.NET Site

How to host your web API. Blog. Sign in Join. Language. ... Deployment and Hosting. Deploy a Web API to an Azure Website; ... Designing Evolvable Web APIs ...
Read more