REST & Hypermedia: the missing links and why you need them - Ruby Hoedown 2012
-
Upload
phil-harvey -
Category
Technology
-
view
1.462 -
download
0
description
Transcript of REST & Hypermedia: the missing links and why you need them - Ruby Hoedown 2012
GET /greetingContent-Type: text/plainHello :)
Saturday, September 22, 12
About Me
• Phil Harvey, @philharvey
• Web Developer
• Member of the architecture team
• The Lampo Group, Inc.
• daveramsey.com
Saturday, September 22, 12
REST & HypermediaThe Missing Links and Why You Need Them
Saturday, September 22, 12
Purpose
Saturday, September 22, 12
Common Scenario
You built an API for a business need...
Saturday, September 22, 12
Common Scenario
The business grows, matures, and changes...
Saturday, September 22, 12
Common Scenario
Leading to new, unanticipated requirements...
Saturday, September 22, 12
Common Scenario
New functionality is needed! But...
Saturday, September 22, 12
Common Scenario
You must not break existing clients!
Saturday, September 22, 12
Hypermedia
Saturday, September 22, 12
Saturday, September 22, 12
api.example.com
Tickets (/tickets)
Ticket (/ticket)
Saturday, September 22, 12
Three Examples...UPDATE: My three examples are now located in a Gist on GitHub, right here:
https://gist.github.com/3766847
Feel free to comment on them there. Thanks!
- Phil Harvey
Saturday, September 22, 12
Hypermedia Constraint
• Minimal API surface area
• Discoverable Transitions
• Looser coupling, higher extensibility, reduced breakage
• Independent evolution/innovation of Client and Server systems
Saturday, September 22, 12
Hypermedia gives you wings!
Saturday, September 22, 12
Questions, comments?
Saturday, September 22, 12
Resources
• Roy Fielding’s dissertation:
• http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm
• Google groups:
• API Craft, Hypermedia Web, REST-Discuss
• Implementing REST/Hypermedia APIs:
• http://code.google.com/p/implementing-rest/
Saturday, September 22, 12
Thanks!
Saturday, September 22, 12