hypermedia as the evader of app stores
DESCRIPTION
Use hypermedia to move your business logic out of your native mobile apps and reduce the time spent in the app stores.TRANSCRIPT
![Page 1: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/1.jpg)
HATEOASHypermedia As The Evader Of App Stores
![Page 3: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/3.jpg)
What do I know?
• Deploying native applications is a pain• Hypermedia can reduce
deployment frequency
![Page 4: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/4.jpg)
Where does the business logic go?
![Page 5: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/5.jpg)
Hypermedia ?
![Page 6: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/6.jpg)
More code less theory
![Page 7: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/7.jpg)
Hypermedia API – Example 1
Switch
On
Off
GET /switchPOST /switch/on
POST /switch/off
![Page 8: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/8.jpg)
Demo
![Page 9: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/9.jpg)
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
![Page 10: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/10.jpg)
Hypermedia API – Example 2
Expense AppHome Expenses
Approve
Unapprove
Receipt
{ExpenseId}
{ExpenseId}
{?filename}
![Page 11: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/11.jpg)
Demo
![Page 12: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/12.jpg)
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
![Page 13: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/13.jpg)
http://www.bizcoder.com/ https://github.com/tavis-software
https://github.com/darrel.miller/hypermediaclients
![Page 14: Hypermedia As The Evader Of App Stores](https://reader035.vdocuments.net/reader035/viewer/2022062706/5579909cd8b42ae72b8b4b55/html5/thumbnails/14.jpg)
Image Credits• Child https://www.flickr.com/photos/piulet/• Tug of War https://flic.kr/p/nD2nj• Web https://flic.kr/p/5RgD34