Upload
darrelmiller71
View
119
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Use hypermedia to move your business logic out of your native mobile apps and reduce the time spent in the app stores.
Citation preview
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