REST: Let's get the facts straight - FOWA London

1,816 views

Published on

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

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

No notes for slide

REST: Let's get the facts straight - FOWA London

  1. 1. RESTLET’S GET THE FACTS STRAIGHT Juozas Kaziukėnas // juokaz.com // @juokaz
  2. 2. Juozas Kaziukėnas, LithuanianYou can call me JoeMore info http://juokaz.com
  3. 3. Why is it that any college educatedperson in the world can fill out a formto apply for a job.But making the exact same HTTPrequest to an API qualifies you as adeveloper? Leonard Richardson
  4. 4. HATEOASHYPERMEDIA CONSTRAINT
  5. 5. HYPERMEDIA CONSTRAINTGET /machines/1Host: example.comAccept: application/xmlHTTP/1.1 200 OKContent-Type: application/xml<machine><status>stopped</status><link rel="start" method="post" href="/machines/1?op=start" /></machine>HTTP/1.1 200 OKContent-Type: application/xml<machine><status>running</status><link rel="stop" method="post" href="/machines/1?op=stop" /></machine>
  6. 6. IT’S HOW THE WEB WORKS
  7. 7. MATURITY MODEL
  8. 8. HTTP IS BASED ON AGREEING
  9. 9. WHAT DOES “REST” MEAN?
  10. 10. GET /POSTS
  11. 11. IT MEANS A GOOD THING
  12. 12. MULTIPLE THINGS
  13. 13. WRONG But...
  14. 14. NOT ABOUT BEING RESTFUL
  15. 15. REST IS NOT• not about being called RESTful• not about the URLs• not about HTTP verbs• not about JSON vs XML• not a protocol
  16. 16. DESIGNING INTERFACES
  17. 17. DOMAIN DUMP != API
  18. 18. EASY INTERFACES• Discoverable• Stateless• Cacheable• Integratable• Leveraging HTTP
  19. 19. WHY WOULD YOU GO THE EXTRA MILE?
  20. 20. THANKS!Juozas Kaziukėnas @juokaz

×