Hypermedia As The Evader Of App Stores

14
HATEOAS 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 of Hypermedia As The Evader Of App Stores

Page 1: Hypermedia As The Evader Of App Stores

HATEOASHypermedia As The Evader Of App Stores

Page 2: Hypermedia As The Evader Of App Stores

Who am I?

Twitter: @darrel_millerEmail: [email protected]

Page 3: Hypermedia As The Evader Of App Stores

What do I know?

• Deploying native applications is a pain• Hypermedia can reduce

deployment frequency

Page 4: Hypermedia As The Evader Of App Stores

Where does the business logic go?

Page 5: Hypermedia As The Evader Of App Stores

Hypermedia ?

Page 6: Hypermedia As The Evader Of App Stores

More code less theory

Page 7: Hypermedia As The Evader Of App Stores

Hypermedia API – Example 1

Switch

On

Off

GET /switchPOST /switch/on

POST /switch/off

Page 8: Hypermedia As The Evader Of App Stores

Demo

Page 9: Hypermedia As The Evader Of App Stores

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

Hypermedia API – Example 2

Expense AppHome Expenses

Approve

Unapprove

Receipt

{ExpenseId}

{ExpenseId}

{?filename}

Page 11: Hypermedia As The Evader Of App Stores

Demo

Page 12: Hypermedia As The Evader Of App Stores

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

http://www.bizcoder.com/ https://github.com/tavis-software

https://github.com/darrel.miller/hypermediaclients

Page 14: Hypermedia As The Evader Of App Stores

Image Credits• Child  https://www.flickr.com/photos/piulet/• Tug of War https://flic.kr/p/nD2nj• Web https://flic.kr/p/5RgD34