Hypermedia As The Evader Of App Stores
-
Upload
darrelmiller71 -
Category
Software
-
view
118 -
download
0
description
Transcript of Hypermedia As The Evader Of App Stores
HATEOASHypermedia As The Evader Of App Stores
Who am I?
Twitter: @darrel_millerEmail: [email protected]
What do I know?
• Deploying native applications is a pain• Hypermedia can reduce
deployment frequency
Where does the business logic go?
Hypermedia ?
More code less theory
Hypermedia API – Example 1
Switch
On
Off
GET /switchPOST /switch/on
POST /switch/off
Demo
So what?• Links convey options to the client• Following Links captures the user’s intent• Client is limited to dealing with the what, not the how
Hypermedia API – Example 2
Expense AppHome Expenses
Approve
Unapprove
Receipt
{ExpenseId}
{ExpenseId}
{?filename}
Demo
Conclusions• Client state as an implementation artifact can be
valuable• Using Link types to encapsulate behavior isolates
coupling and enables re-use• Allowing the server to take responsibility of application
workflow reduces dependencies on client UI frameworks• Putting your business logic on the server can save you
trips to the app store
http://www.bizcoder.com/ https://github.com/tavis-software
https://github.com/darrel.miller/hypermediaclients
Image Credits• Child https://www.flickr.com/photos/piulet/• Tug of War https://flic.kr/p/nD2nj• Web https://flic.kr/p/5RgD34