+ All Categories
Home > Technology > REST: Let's get the facts straight - FOWA London

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

Date post: 30-Oct-2014
Category:
Upload: juozas-kaziukenas
View: 1,688 times
Download: 0 times
Share this document with a friend
Description:
 
Popular Tags:
21
REST LET’S GET THE FACTS STRAIGHT Juozas Kaziukėnas // juokaz.com // @juokaz
Transcript
Page 1: REST: Let's get the facts straight - FOWA London

RESTLET’S GET THE FACTS STRAIGHT

Juozas Kaziukėnas // juokaz.com // @juokaz

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

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

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

HATEOAS

HYPERMEDIA CONSTRAINT

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

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

IT’S HOW THE WEB WORKS

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

MATURITY MODEL

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

HTTP IS BASED ON AGREEING

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

WHAT DOES “REST” MEAN?

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

GET /POSTS

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

IT MEANS A GOOD THING

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

MULTIPLE THINGS

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

WRONGBut...

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

NOT ABOUT BEING RESTFUL

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

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

DESIGNING INTERFACES

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

DOMAIN DUMP != API

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

EASY INTERFACES

•Discoverable

• Stateless

• Cacheable

• Integratable

• Leveraging HTTP

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

WHY WOULD YOU GO THE EXTRA MILE?

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

THANKS!Juozas Kaziukėnas

@juokaz


Recommended