Why should i care about hypermedia

1,043 views
989 views

Published on

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

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,043
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Why should i care about hypermedia

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

×