Building Hypermedia APIs with HTML5 and Node

Building Hypermedia APIs with HTML5 and Node

Language: English

Pages: 244

ISBN: 1449306578

Format: PDF / Kindle (mobi) / ePub


With this concise book, you’ll learn the art of building hypermedia APIs that don’t simply run on the Web, but that actually exist in the Web. You’ll start with the general principles and technologies behind this architectural approach, and then dive hands-on into three fully-functional API examples.

Too many APIs rely on concepts rooted in desktop and local area network patterns that don’t scale well—costly solutions that are difficult to maintain over time. This book shows system architects and web developers how to design and implement human- and machine-readable web services that remain stable and flexible as they scale.

  • Learn the H-Factors for representing application metadata across all media types and formats
  • Understand the four basic design elements for authoring hypermedia types
  • Convert a simple read-only XML-based media type into a successful API design
  • Examine the challenges and advantages of designing a hypermedia type with JSON
  • Use HTML5’s rich set of hypermedia controls in the API design process
  • Learn the details of documenting, publishing, and registering media type designs and link-relation types

Rural Women and Triple Exploitation in Korean Development (International Political Economy)

Building Hypermedia APIs with HTML5 and Node

UDK iOS Game Development Beginners Guide

Design Driven Testing: Test Smarter, Not Harder

Cleft Lip and Palate : Diagnosis and Management (3rd Edition)

 

 

 

 

 

 

 

 

 

 

interested in whether the media type can successfully carry the domain information needed to make an application work. Some readers may be focused on creating working implementations. Server implementors will want to know how to use the media type to emit valid representations. Client developers will want to understand how to interpret representations received from servers. A small but important group of readers will want to make sure the media type design is safe to use, stable, and reliable.

Domain-generic hypermedia controls. In media type designs that are not domain-specific, the hypermedia controls are usually identified with the protocol-level action they support: Expressing hypermedia in domain-generic designs /* a JSON example */ { "send" : { "action" : "ceate", "href" : "http://example.org/tasks/" "data" [ {"name" : "title", "value" : "Sample Task"}, {"name" : "description", "value" : "This is a simple task."}, {"name" : "due-date", "value" : "2011-03-01"}, {"name" : "status",

help when creating a new version of a media type. It should be easy to identify new versions of a media type. When the version of a media type changes, it should be easy for implementors, both client and server, to recognize the change. There are a number of ways in which this can be done. The most explicit option is to register a new MIME Media Type identifier with the IANA: application/vnd.custom+xml application/vnd.custom-v2+xml A similar approach is to define and use a version parameter in

JSON Schema, http://json-schema.org/ Extensible Markup Language (XML), http://www.w3.org/XML/ XML Inclusions (XInclude) Version 1.0 (Second Edition), http://www.w3.org/TR/xin clude/ XSL Transformations (XSLT), http://www.w3.org/TR/xslt 171 XML Path Language (XPath), http://www.w3.org/TR/xpath/ XQuery 1.0: An XML Query Language (Second Edition), http://www.w3.org/TR/ xquery/ XML Schema, http://www.w3.org/XML/Schema Schematron, http://www.schematron.com/ XML Pointer Language (XPointer),

for Comma-Separated Values (CSV) Files, http:// www.rfc-editor.org/rfc/rfc4180.txt Protocol Buffers, http://code.google.com/apis/protocolbuffers/ Voice Extensible Markup Language (VoiceXML) 2.1, http://www.w3.org/TR/voi cexml21/ Microformats Existing Rel Values, http://microformats.org/wiki/existing-rel-values IANA Link Relations, http://www.iana.org/assignments/link-relations/link-relations .xml Dublin Core Terms, http://dublincore.org/documents/dcmi-terms/ URI Resolution Services Necessary for

Download sample

Download