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" : "" "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, Extensible Markup Language (XML), XML Inclusions (XInclude) Version 1.0 (Second Edition), clude/ XSL Transformations (XSLT), 171 XML Path Language (XPath), XQuery 1.0: An XML Query Language (Second Edition), xquery/ XML Schema, Schematron, XML Pointer Language (XPointer),

for Comma-Separated Values (CSV) Files, http:// Protocol Buffers, Voice Extensible Markup Language (VoiceXML) 2.1, cexml21/ Microformats Existing Rel Values, IANA Link Relations, .xml Dublin Core Terms, URI Resolution Services Necessary for

Download sample