SlideShare une entreprise Scribd logo
1  sur  9
Hyper Fantasy Adventures In Hypermedia  Jim Barritt
Prologue REST – Roy Fielding REST IN PRACTICE – Jim Webber, Ian Robinson, Savas Parastatdis RESTFULIE – Guilherme Silveira,                       Lucas Cavalcanti
Love to <Link> Hypermedia Controls <atom:link href=“” rel=“” /> <a href=“” rel=“” >Link to somewhere</a> Media types application/xhtml+xml text/html application/xml application/json application/vnd.restbucks+xml
Talking in Http HEAD GET PUT POST DELETE 200 (ok) 404 (not found) 500 (internal error) 418 (I’m a teapot) http://www.faqs.org/rfcs/rfc2324.html Accept: text/* application/xml
RESTafarianism Client-Server Stateless Cacheable Layered System Uniform interface Identification of resources Manipulation of resources via representations Self-descriptive messages HATEOAS (Hypermedia as the engine of application state) Code on demand (optional)
Restfulie Why would I use restfulie? 1. Easy —> writing hypermedia aware resource based clients 2. Easy —> hypermedia aware resource based services 3. Small -> it’s not a bloated solution with a huge list of APIs 4. HATEOAS —> clients you are unaware of will not bother if you change your URIs 5. HATEOAS —> services that you consume will not affect your software whenever they change part of their flow or URIs
Hyperia
To the CODE!
Epilogue http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm http://www.facebook.com/RESTinPractice http://github.com/caelum/restfulie-java 	London geek night 22nd November http://github.com/jimbarritt/spikes/tree/master/restfulie/

Contenu connexe

Similaire à Hyper fantasy

Creating Restful Web Services with restish
Creating Restful Web Services with restishCreating Restful Web Services with restish
Creating Restful Web Services with restishGrig Gheorghiu
 
REST: The Most Misunderstood Software Architecture Ever
REST: The Most Misunderstood Software Architecture EverREST: The Most Misunderstood Software Architecture Ever
REST: The Most Misunderstood Software Architecture EverMartín Soto
 
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011Alessandro Nadalin
 
Introduction to REST and Hypermedia
Introduction to REST and HypermediaIntroduction to REST and Hypermedia
Introduction to REST and HypermediaNordic APIs
 
01. http basics v27
01. http basics v2701. http basics v27
01. http basics v27Eoin Keary
 
Web Services Testing
Web Services TestingWeb Services Testing
Web Services TestingDataArt
 
The REST And Then Some
The REST And Then SomeThe REST And Then Some
The REST And Then SomeNordic APIs
 
Secure RESTful API Automation With JavaScript
Secure RESTful API Automation With JavaScriptSecure RESTful API Automation With JavaScript
Secure RESTful API Automation With JavaScriptJonathan LeBlanc
 
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...Nguyen Duc Phu
 
HTTP: the Other ESB
HTTP: the Other ESBHTTP: the Other ESB
HTTP: the Other ESBRyan Riley
 
Api Design and More (Friday Training at Itnig)
Api Design and More (Friday Training at Itnig)Api Design and More (Friday Training at Itnig)
Api Design and More (Friday Training at Itnig)itnig
 
nguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-servicenguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-servicehazzaz
 
Jordi Romero Api for-the-mobile-era
Jordi Romero Api for-the-mobile-eraJordi Romero Api for-the-mobile-era
Jordi Romero Api for-the-mobile-era.toster
 
REST and the Hypermedia Constraint
REST and the Hypermedia ConstraintREST and the Hypermedia Constraint
REST and the Hypermedia ConstraintInviqa
 

Similaire à Hyper fantasy (20)

Creating Restful Web Services with restish
Creating Restful Web Services with restishCreating Restful Web Services with restish
Creating Restful Web Services with restish
 
REST: The Most Misunderstood Software Architecture Ever
REST: The Most Misunderstood Software Architecture EverREST: The Most Misunderstood Software Architecture Ever
REST: The Most Misunderstood Software Architecture Ever
 
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
 
Introduction to REST and Hypermedia
Introduction to REST and HypermediaIntroduction to REST and Hypermedia
Introduction to REST and Hypermedia
 
01. http basics v27
01. http basics v2701. http basics v27
01. http basics v27
 
Web Services Testing
Web Services TestingWeb Services Testing
Web Services Testing
 
The REST And Then Some
The REST And Then SomeThe REST And Then Some
The REST And Then Some
 
Php manish
Php manishPhp manish
Php manish
 
REST in theory
REST in theoryREST in theory
REST in theory
 
Secure RESTful API Automation With JavaScript
Secure RESTful API Automation With JavaScriptSecure RESTful API Automation With JavaScript
Secure RESTful API Automation With JavaScript
 
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
 
An Introduction To REST API
An Introduction To REST APIAn Introduction To REST API
An Introduction To REST API
 
WebApp #3 : API
WebApp #3 : APIWebApp #3 : API
WebApp #3 : API
 
HTTP: the Other ESB
HTTP: the Other ESBHTTP: the Other ESB
HTTP: the Other ESB
 
Api Design and More (Friday Training at Itnig)
Api Design and More (Friday Training at Itnig)Api Design and More (Friday Training at Itnig)
Api Design and More (Friday Training at Itnig)
 
nguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-servicenguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-service
 
Jordi Romero Api for-the-mobile-era
Jordi Romero Api for-the-mobile-eraJordi Romero Api for-the-mobile-era
Jordi Romero Api for-the-mobile-era
 
Rest in design
Rest in designRest in design
Rest in design
 
REST and the Hypermedia Constraint
REST and the Hypermedia ConstraintREST and the Hypermedia Constraint
REST and the Hypermedia Constraint
 
Talking to Web Services
Talking to Web ServicesTalking to Web Services
Talking to Web Services
 

Hyper fantasy

  • 1. Hyper Fantasy Adventures In Hypermedia Jim Barritt
  • 2. Prologue REST – Roy Fielding REST IN PRACTICE – Jim Webber, Ian Robinson, Savas Parastatdis RESTFULIE – Guilherme Silveira, Lucas Cavalcanti
  • 3. Love to <Link> Hypermedia Controls <atom:link href=“” rel=“” /> <a href=“” rel=“” >Link to somewhere</a> Media types application/xhtml+xml text/html application/xml application/json application/vnd.restbucks+xml
  • 4. Talking in Http HEAD GET PUT POST DELETE 200 (ok) 404 (not found) 500 (internal error) 418 (I’m a teapot) http://www.faqs.org/rfcs/rfc2324.html Accept: text/* application/xml
  • 5. RESTafarianism Client-Server Stateless Cacheable Layered System Uniform interface Identification of resources Manipulation of resources via representations Self-descriptive messages HATEOAS (Hypermedia as the engine of application state) Code on demand (optional)
  • 6. Restfulie Why would I use restfulie? 1. Easy —> writing hypermedia aware resource based clients 2. Easy —> hypermedia aware resource based services 3. Small -> it’s not a bloated solution with a huge list of APIs 4. HATEOAS —> clients you are unaware of will not bother if you change your URIs 5. HATEOAS —> services that you consume will not affect your software whenever they change part of their flow or URIs
  • 9. Epilogue http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm http://www.facebook.com/RESTinPractice http://github.com/caelum/restfulie-java London geek night 22nd November http://github.com/jimbarritt/spikes/tree/master/restfulie/

Notes de l'éditeur

  1. Ask audience if they want to see code or app first