Why should i care about hypermedia
Upcoming SlideShare
Loading in...5
×
 

Why should i care about hypermedia

on

  • 899 views

Presented by Mads Enevoldsen from Jayway at Nordic APIS in Copenhagen on May 21 2013

Presented by Mads Enevoldsen from Jayway at Nordic APIS in Copenhagen on May 21 2013

Statistics

Views

Total Views
899
Views on SlideShare
372
Embed Views
527

Actions

Likes
0
Downloads
2
Comments
0

3 Embeds 527

http://nordicapis.com 517
http://newsblur.com 9
http://localhost 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Why should i care about hypermedia Why should i care about hypermedia Presentation Transcript

  • Why should I care aboutHypermedia APIs?Copenhagen May 21th 2013Mads Enevoldsenmads.enevoldsen@jayway.com
  • Poll
  • AssumptionsOverall conceptsOnly HTTP
  • REST CoinedRoy Fielding [2000]:"Architectural Styles and theDesign of Network­basedSoftware Architectures"REST polluted and HATEOASHypermedia API
  • Richardson MaturityModelMartin Fowlerhttp://martinfowler.com/articles/richardsonMaturityModel.html
  • Hypermedia ControlsHuman: links with namesComputer: links with rel
  • Design of HypermediaAPICommunicate business flow vialinksClient like a state machine
  • Client Side ComparisonLevel 2 Level 3NavigationBehavior
  • Client Side ComparisonLevel 2 Level 3Navigation construct followBehavior
  • Client Side ComparisonLevel 2 Level 3Navigation construct followBehavior business rules implied by links
  • Example: BookshopBrowse book catalogRead book detailsPurchase bookDownload book
  • Level 2Gustaf Nielson KotteSurviving the Zombie Apocapolypse of Connected Devices
  • Level 3Gustaf Nielson KotteSurviving the Zombie Apocapolypse of Connected Devices
  • CR: Free Xmas download
  • CR: Free Xmas downloadFat clients need update
  • CR: Free Xmas downloadSkinny Clients Are OK
  • Framework support@HasBoughtBook(false)public void buy(){...}@HasBoughtBook(true)public InputStream download(){...}
  • Thank youmads.enevoldsen@jayway.com