The document discusses REST (Representational State Transfer) and caching in a hypermedia system. It provides examples of how resources can link to other related resources and how caching can be implemented by having different versions of resources that are cacheable. Integrating systems over the web using hypermedia and REST principles is emphasized, with resources linking to each other to allow actions like cancelling flights or reservations through removing links.
44. resttrips.com: sharing a trip
flight = Client.at('http://resttrips.com/f/574XR4').get();
confirmation = flight.getLink("payment").
patch(cardInformation, value/2);
// send the payment link to another part of the web
flight = Client.at('http://resttrips.com/f/574XR4').get();
confirmation = flight.getLink("payment").
patch(cardInformation, value/2);
45. resttrips.com: sharing a trip
flight = Client.at('http://resttrips.com/f/574XR4').get();
confirmation = flight.getLink("payment").
patch(cardInformation, value/2);
// send the payment link to another part of the web
flight = Client.at('http://resttrips.com/f/574XR4').get();
confirmation = flight.getLink("payment").
patch(cardInformation, value/2);
46. resttrips.com: sharing a trip
flight = Client.at('http://resttrips.com/f/574XR4').get();
confirmation = flight.getLink("payment").
patch(cardInformation, value/2);
// send the payment link to another part of the web
flight = Client.at('http://resttrips.com/f/574XR4').get();
confirmation = flight.getLink("payment").
patch(cardInformation, value/2);
47. calendar: integrating my systems
myself = Client.at('http://users.calendar.com')
.with(auth).get();
myself.link("calendar").patch(flight.link("self"));
48. calendar: integrating my systems
myself = Client.at('http://users.calendar.com')
.with(auth).get();
myself.link("calendar").patch(flight.link("self"));
54. Any update on the flight ==> reflects here
Any update on the hotel ==> reflects here
Any update on the meeting ==> reflects here
so what?
55. Any update on the flight ==> reflects here
!
Any update on the hotel ==> reflects here
te
Any update on the meeting ==> reflects here
g ra
in t e
s e ,
st u
’t ju so what?
d o n
56. Remove ==> Cancels the flight
Remove ==> Cancels the reservation
Remove ==> Emails your coworkers
so what?
57. Remove ==> Cancels the flight
l!
Remove ==> Cancels the reservation
ro
Remove ==> Emails your coworkers
t
co n
l iz e
tr a
ce n
o n’t so what?
d
58. so what? that was just keeping an URI.
ro l!
co nt
a li ze
en tr
no tc
o
dRemove ==> Cancels the flight
Remove ==> Cancels the reservation
Remove ==> Emails your coworkers