rest: let's get the facts straight - fowa london
DESCRIPTION
TRANSCRIPT
![Page 1: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/1.jpg)
RESTLET’S GET THE FACTS STRAIGHT
Juozas Kaziukėnas // juokaz.com // @juokaz
![Page 2: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/2.jpg)
Juozas Kaziukėnas, Lithuanian
You can call me Joe
More info http://juokaz.com
![Page 3: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/3.jpg)
Why is it that any college educated person in the world can fill out a form to apply for a job.
But making the exact same HTTP request to an API qualifies you as a developer?
Leonard Richardson
![Page 4: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/4.jpg)
HATEOAS
HYPERMEDIA CONSTRAINT
![Page 5: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/5.jpg)
HYPERMEDIA CONSTRAINTGET /machines/1Host: example.comAccept: application/xml
HTTP/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>
![Page 6: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/6.jpg)
IT’S HOW THE WEB WORKS
![Page 7: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/7.jpg)
MATURITY MODEL
![Page 8: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/8.jpg)
HTTP IS BASED ON AGREEING
![Page 9: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/9.jpg)
WHAT DOES “REST” MEAN?
![Page 10: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/10.jpg)
GET /POSTS
![Page 11: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/11.jpg)
IT MEANS A GOOD THING
![Page 12: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/12.jpg)
MULTIPLE THINGS
![Page 13: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/13.jpg)
![Page 14: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/14.jpg)
WRONGBut...
![Page 15: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/15.jpg)
NOT ABOUT BEING RESTFUL
![Page 16: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/16.jpg)
REST IS NOT
• not about being called RESTful
• not about the URLs
• not about HTTP verbs
• not about JSON vs XML
• not a protocol
![Page 17: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/17.jpg)
DESIGNING INTERFACES
![Page 18: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/18.jpg)
DOMAIN DUMP != API
![Page 19: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/19.jpg)
EASY INTERFACES
•Discoverable
• Stateless
• Cacheable
• Integratable
• Leveraging HTTP
![Page 20: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/20.jpg)
WHY WOULD YOU GO THE EXTRA MILE?
![Page 21: REST: Let's get the facts straight - FOWA London](https://reader034.vdocuments.mx/reader034/viewer/2022051311/545395f5af795919308b52ff/html5/thumbnails/21.jpg)
THANKS!Juozas Kaziukėnas
@juokaz