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>
Minimal HTML
IDEA: A COMMON GOAL
HTML Hypermedia APIs ∩ Mobile first
=
(also, reduce number of roundtrips)
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, share templates too)
Separate URLs
Optimize response size and #roundtrips
Microformats2 as semantic layer or RDFa [Lite]
Agressive enhancement
Other AWD techniques :)
Optimize API perspective
DEMO: CHANGING THE APPLICATION
SUMMARY
HTML Hypermedia APIs ❤ Mobile First
Mobile First ❤ all web browsers and devices
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: https://github.com/gustafnk/HTML-Hypermedia-APIs-and-Adaptive-Web-Design

More Related Content

PDF
HTML Hypermedia APIs and Adaptive Web Design - RuPy
PDF
Design Hypermedia APIs
PDF
HTML Hypermedia APIs and Adaptive Web Design - jDays 2013
PDF
Surviving the Zombie Apocalpyse of Connected Devices
PDF
Simpler Web Architectures Now! (At The Frontend 2016)
PDF
A Simpler Web App Architecture (jDays 2016)
PDF
HTML Hypermedia APIs and Adaptive Web Design - Nordic APIs
PDF
Surviving the Zombie Apocalypse of Connected devices - Jfokus 2013
HTML Hypermedia APIs and Adaptive Web Design - RuPy
Design Hypermedia APIs
HTML Hypermedia APIs and Adaptive Web Design - jDays 2013
Surviving the Zombie Apocalpyse of Connected Devices
Simpler Web Architectures Now! (At The Frontend 2016)
A Simpler Web App Architecture (jDays 2016)
HTML Hypermedia APIs and Adaptive Web Design - Nordic APIs
Surviving the Zombie Apocalypse of Connected devices - Jfokus 2013

What's hot (20)

PDF
Modern Web App Architectures
PPT
Openkapow At Mashup Camp 5
PPTX
Front-End Development
PPTX
Full stack devlopment using django main ppt
PPTX
Single page application
PDF
Backend & Frontend architecture scalability & websockets
PPTX
Web Front End Performance
PPTX
How to automate your BizTalk Installations and Deployments with Chef
PDF
Hypermedia APIs – Why, what, how?
PPTX
Html5 inputs
PPTX
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise
PPTX
Building SPAs with AngularJS
PPTX
What’s right & wrong with WCF-WebHTTP Adapter?
PDF
Modern Web Applications
PPTX
Asp.net introduction
PDF
Frontend 'vs' Backend Getting the Right Mix
PPT
Mobile Web
PDF
Dynamic websites lec5
PPTX
Top web development tools
PPTX
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Modern Web App Architectures
Openkapow At Mashup Camp 5
Front-End Development
Full stack devlopment using django main ppt
Single page application
Backend & Frontend architecture scalability & websockets
Web Front End Performance
How to automate your BizTalk Installations and Deployments with Chef
Hypermedia APIs – Why, what, how?
Html5 inputs
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise
Building SPAs with AngularJS
What’s right & wrong with WCF-WebHTTP Adapter?
Modern Web Applications
Asp.net introduction
Frontend 'vs' Backend Getting the Right Mix
Mobile Web
Dynamic websites lec5
Top web development tools
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Ad

Similar to HTML Hypermedia APIs and Adaptive Web Design - reject.js (20)

PDF
Talking to 25% of the web - In-depth report and analysis on the WordPress RES...
PDF
RefCard API Architecture Strategy
PPT
PPTX
Html5ignition newweborder
PDF
API Introduction - API Management Workshop Munich from Ronnie Mitra
PDF
01 web 2.0 - more than a pretty face for soa
PPT
European SharePoint Conference: Mobile Applications for SharePoint using HTML5
PDF
Making Of PHP Based Web Application
PDF
Frontend Monoliths: Run if you can!
PPT
HTML5 Webinar - Mind Storm Software
PDF
Mobile web apps here and now!
PPTX
OpenSource Node.js API Framework and Server for Enterprise
PDF
WSO2Con Asia 2014 - Building the API-Centric Enterprise
PPT
Fundamentals of web_design_v2
PDF
Implementing Hypermedia Clients: It's Not Rocket Science – Mike Amundsen, Pri...
PDF
Practical guide to building public APIs
PPTX
Past, Present, Future of APIS
PDF
HTML5 and the dawn of rich mobile web applications
PPTX
Making Sense of Hypermedia APIs – Hype or Reality?
PDF
The challenges of building mobile HTML5 applications - FEEC Brazil 2012 - Recife
Talking to 25% of the web - In-depth report and analysis on the WordPress RES...
RefCard API Architecture Strategy
Html5ignition newweborder
API Introduction - API Management Workshop Munich from Ronnie Mitra
01 web 2.0 - more than a pretty face for soa
European SharePoint Conference: Mobile Applications for SharePoint using HTML5
Making Of PHP Based Web Application
Frontend Monoliths: Run if you can!
HTML5 Webinar - Mind Storm Software
Mobile web apps here and now!
OpenSource Node.js API Framework and Server for Enterprise
WSO2Con Asia 2014 - Building the API-Centric Enterprise
Fundamentals of web_design_v2
Implementing Hypermedia Clients: It's Not Rocket Science – Mike Amundsen, Pri...
Practical guide to building public APIs
Past, Present, Future of APIS
HTML5 and the dawn of rich mobile web applications
Making Sense of Hypermedia APIs – Hype or Reality?
The challenges of building mobile HTML5 applications - FEEC Brazil 2012 - Recife
Ad

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Machine learning based COVID-19 study performance prediction
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
Teaching material agriculture food technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
sap open course for s4hana steps from ECC to s4
Spectral efficient network and resource selection model in 5G networks
Machine learning based COVID-19 study performance prediction
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Mobile App Security Testing_ A Comprehensive Guide.pdf
Teaching material agriculture food technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Chapter 3 Spatial Domain Image Processing.pdf
MYSQL Presentation for SQL database connectivity
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf

HTML Hypermedia APIs and Adaptive Web Design - reject.js