SlideShare a Scribd company logo
HTML HYPERMEDIA APIS
AND
ADAPTIVE WEB DESIGN
Gustaf Nilsson Kotte / @gustaf_nk
ABOUT ME
TWO AREAS OF INTEREST
Hypermedia APIs - No application logic in API clients
Adaptive Web Design - Multi-device web
Working nicely together!
DEMO, KANBAN BOARD
HTML Hypermedia API + Adaptive Web Design
PREFER FAT APIS OVER FAT CLIENTS
http://martinfowler.com/articles/richardsonMaturityModel.html
HYPERMEDIA APIS
WHAT IS THE HYPERMEDIA CONSTRAINT?
— Jon Moore
You do stuff by reading pages
and then either
follow links or submit forms.
USE HTML FOR HYPERMEDIA APIS
Lots of hypermedia controls
Old, standardized, everybody knows HTML
Good tooling support
https://vimeo.com/20781278
http://codeartisan.blogspot.se/2012/07/using-html-as-media-type-for-your-api.html
http://amundsen.com/hypermedia/html/
MORE...
Great for learning about hypermedia!
INTERLUDE
JSON is ok :)
Also, hypermedia is a bit harder to consume in general
EXAMPLE: MICROFORMATS2, ENTITIES
<li class="h-item">
<div class="p-name"><%= item.name %></div>
<div class="p-status"><%= item.status %></div>
<div class="p-description"><%= item.description %></div>
<div class="p-forms">
...
</div>
<div class="p-links">
...
</div>
</li>
EXAMPLE: MICROFORMATS2, FORMS
<div class="p-forms">
<form data-rel="move backlog" action="/items/backlog" method="POST">
<input name="id" type="hidden" value="4">
<input title="submit" type="submit" value="Move to backlog">
</form>
<form data-rel="move verify next" action="/items/verify" method="POST">
<input name="id" type="hidden" value="4">
<input title="submit" type="submit" value="Move to verify">
</form>
</div>
HTML HYPERMEDIA APIS ❤ MOBILE FIRST
http://filamentgroup.com/lab/ajax_includes_modular_content/
http://bradfrostweb.com/blog/mobile/beyond-media-queries-anatomy-of-an-adaptive-web-design/
http://bradfrostweb.com/blog/mobile/beyond-media-queries-anatomy-of-an-adaptive-web-design/
ADAPTIVE WEB DESIGN
Responsive web design
Feature detection
Device APIs
Performance
Conditional loading
Content strategy
Touch
Platform optimization
Ergonomics
...
http://bradfrostweb.com/blog/mobile/beyond-media-queries-anatomy-of-an-adaptive-web-design
PROGRESSIVE ENHANCEMENT
THE API AND THE WEB
CAN BE THE SAME THING!
HTML Hypermedia APIs ❤ Mobile First
Mobile First ❤ all web browsers and devices
THE API AND THE WEB
CAN BE THE SAME THING!
HTML Hypermedia APIs
❤
Adaptive Web Design
HTML HYPERMEDIA APIS + AWD
HIGH LEVEL VIEW
Same code for web and API
...yes, they share templates too
Separate URLs
Optimize for both perspectives
DEMO: CHANGING THE APPLICATION
SUMMARY
HTML Hypermedia APIs ❤ Mobile First
Mobile First ❤ all web browsers and devices
HTML Hypermedia APIs
❤
Adaptive Web Design
FURTHER EXPLORATION, BOOKS
,Mike Amundsen Building Hypermedia APIs
with HTML5 and Node
,Steve Klabnik Designing Hypermedia APIs
,Aaron Gustafson Adaptive Web Design
FURTHER EXPLORATION, ONLINE
,Brad Frost Beyond Media Queries:
Anatomy of an Adaptive Web Design
,Nicolas Zakas Progressive Enhancement 2.0
(et al),Stefan Tilkov Resource-oriented Client Architecture
THANK YOU!Gustaf Nilsson Kotte / @gustaf_nk
Code: https://github.com/gustafnk/kanban-awd-api
Demo: andhttp://kanban-awd.herokuapp.com/ http://kanban-api.herokuapp.com
Slides: http://www.slideshare.net/GustafKotte/h-27102096

More Related Content

PDF
HTML Hypermedia APIs and Adaptive Web Design - reject.js
Gustaf Nilsson Kotte
 
PDF
HTML Hypermedia APIs and Adaptive Web Design - jDays 2013
Gustaf Nilsson Kotte
 
PDF
Design Hypermedia APIs
Gustaf Nilsson Kotte
 
PDF
Surviving the Zombie Apocalpyse of Connected Devices
Gustaf Nilsson Kotte
 
PDF
A Simpler Web App Architecture (jDays 2016)
Gustaf Nilsson Kotte
 
PDF
Simpler Web Architectures Now! (At The Frontend 2016)
Gustaf Nilsson Kotte
 
PDF
HTML Hypermedia APIs and Adaptive Web Design - Nordic APIs
Gustaf Nilsson Kotte
 
PDF
Modern Web App Architectures
Raphael Stary
 
HTML Hypermedia APIs and Adaptive Web Design - reject.js
Gustaf Nilsson Kotte
 
HTML Hypermedia APIs and Adaptive Web Design - jDays 2013
Gustaf Nilsson Kotte
 
Design Hypermedia APIs
Gustaf Nilsson Kotte
 
Surviving the Zombie Apocalpyse of Connected Devices
Gustaf Nilsson Kotte
 
A Simpler Web App Architecture (jDays 2016)
Gustaf Nilsson Kotte
 
Simpler Web Architectures Now! (At The Frontend 2016)
Gustaf Nilsson Kotte
 
HTML Hypermedia APIs and Adaptive Web Design - Nordic APIs
Gustaf Nilsson Kotte
 
Modern Web App Architectures
Raphael Stary
 

What's hot (20)

PPTX
Front-End Development
Hein Htet Aung
 
PPTX
Full stack devlopment using django main ppt
SudhanshuVijay3
 
PDF
Surviving the Zombie Apocalypse of Connected devices - Jfokus 2013
Gustaf Nilsson Kotte
 
PPT
Openkapow At Mashup Camp 5
Andreas Krohn
 
PPTX
Single page application
Arthur Fung
 
PPTX
Top web development tools
BusinessDevelopment35
 
PDF
Backend & Frontend architecture scalability & websockets
Anne Jan Brouwer
 
PPT
single page application
Ravindra K
 
PDF
Rise and Fall of the Frontend Developer
Rafael Casuso Romate
 
PPTX
Headless Architecture
Amandeep Singh
 
PDF
Alex Pshul: What We Learned by Testing Execution of 300K Messages/Min in a Se...
CodeValue
 
PPTX
Typescript 102 angular and type script
Bob German
 
PPTX
Single page application and Framework
Chandrasekar G
 
PPTX
Portable single page applications with AngularJS in SharePoint
Roger Noble
 
PPTX
Asp.net introduction
Kshitij Wagle
 
PPTX
6 web development trends to follow in 2021
World Web Technology Pvt Ltd
 
PPT
Web Application Development Fundamentals
Mohammed Makhlouf
 
PPTX
Building SPAs with AngularJS
Cezar Carneiro
 
PDF
Dynamic websites lec5
Belal Arfa
 
PPT
Single Page Application presentation
John Staveley
 
Front-End Development
Hein Htet Aung
 
Full stack devlopment using django main ppt
SudhanshuVijay3
 
Surviving the Zombie Apocalypse of Connected devices - Jfokus 2013
Gustaf Nilsson Kotte
 
Openkapow At Mashup Camp 5
Andreas Krohn
 
Single page application
Arthur Fung
 
Top web development tools
BusinessDevelopment35
 
Backend & Frontend architecture scalability & websockets
Anne Jan Brouwer
 
single page application
Ravindra K
 
Rise and Fall of the Frontend Developer
Rafael Casuso Romate
 
Headless Architecture
Amandeep Singh
 
Alex Pshul: What We Learned by Testing Execution of 300K Messages/Min in a Se...
CodeValue
 
Typescript 102 angular and type script
Bob German
 
Single page application and Framework
Chandrasekar G
 
Portable single page applications with AngularJS in SharePoint
Roger Noble
 
Asp.net introduction
Kshitij Wagle
 
6 web development trends to follow in 2021
World Web Technology Pvt Ltd
 
Web Application Development Fundamentals
Mohammed Makhlouf
 
Building SPAs with AngularJS
Cezar Carneiro
 
Dynamic websites lec5
Belal Arfa
 
Single Page Application presentation
John Staveley
 
Ad

Similar to HTML Hypermedia APIs and Adaptive Web Design - RuPy (20)

PDF
Api craft notes
Anallely Olivares
 
PDF
Hypermedia api (HATEOAS)
MitinPavel
 
PDF
Is the mobile web enabled or disabled by design?
Henny Swan
 
PDF
Universal access across devices
Henny Swan
 
PDF
My Journey into the Terrifying World of Hypermedia
Nordic APIs
 
PDF
Designing & Implementing Hypermedia APIs – Mike Amundsen, Principal API Archi...
CA API Management
 
PDF
Implementing Hypermedia Clients: It's Not Rocket Science – Mike Amundsen, Pri...
CA API Management
 
PDF
An Intro to Mobile HTML5
James Pearce
 
PPTX
Making Sense of Hypermedia APIs – Hype or Reality?
Akana
 
PDF
HTML5/CSS3 and Future Web in Mobile and IPTV
Manyoung Cho
 
KEY
Html5
Sven Haiges
 
PDF
HTML5, the Evolution of Smart Media
Seungyun Lee
 
KEY
WHAT IS HTML5? (at CSS Nite Osaka)
Shumpei Shiraishi
 
PPTX
Dev sum hypemedia talk
Glenn Block
 
PDF
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...
CA API Management
 
PDF
Bruce Lawson, Web Development 2.0, SparkUp! Poznan Poland
brucelawson
 
PDF
W3C Update: Media Web Symposium 2019
Chris Needham
 
PDF
HTML5のご紹介
yoshikawa_t
 
PDF
Bruce lawson-over-the-air
brucelawson
 
PDF
Adaptive Web Design Workshop [WebVisions NYC 2012]
Aaron Gustafson
 
Api craft notes
Anallely Olivares
 
Hypermedia api (HATEOAS)
MitinPavel
 
Is the mobile web enabled or disabled by design?
Henny Swan
 
Universal access across devices
Henny Swan
 
My Journey into the Terrifying World of Hypermedia
Nordic APIs
 
Designing & Implementing Hypermedia APIs – Mike Amundsen, Principal API Archi...
CA API Management
 
Implementing Hypermedia Clients: It's Not Rocket Science – Mike Amundsen, Pri...
CA API Management
 
An Intro to Mobile HTML5
James Pearce
 
Making Sense of Hypermedia APIs – Hype or Reality?
Akana
 
HTML5/CSS3 and Future Web in Mobile and IPTV
Manyoung Cho
 
HTML5, the Evolution of Smart Media
Seungyun Lee
 
WHAT IS HTML5? (at CSS Nite Osaka)
Shumpei Shiraishi
 
Dev sum hypemedia talk
Glenn Block
 
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...
CA API Management
 
Bruce Lawson, Web Development 2.0, SparkUp! Poznan Poland
brucelawson
 
W3C Update: Media Web Symposium 2019
Chris Needham
 
HTML5のご紹介
yoshikawa_t
 
Bruce lawson-over-the-air
brucelawson
 
Adaptive Web Design Workshop [WebVisions NYC 2012]
Aaron Gustafson
 
Ad

Recently uploaded (20)

PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PDF
Software Development Methodologies in 2025
KodekX
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
Doc9.....................................
SofiaCollazos
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
Software Development Methodologies in 2025
KodekX
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
Doc9.....................................
SofiaCollazos
 

HTML Hypermedia APIs and Adaptive Web Design - RuPy