Cargando…

Building Hypermedia APIs with HTML5 and Node /

"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. T...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Amundsen, Michael
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Sebastopol, CA : O'Reilly, ©2012.
Edición:1st ed.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Table of Contents; Foreword; Preface; Hypermedia API Design; Intended Audience; What Is Not Covered; Contents of This Book; Coding Style for This Book; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgements; Chapter 1. Understanding Hypermedia; HTTP, MIME, and Hypermedia; HTTP Is the Transfer Protocol; MIME Is the Media Type Standard; Hypermedia Is the Engine; From links to controls; Hypermedia types; Programming the Web with Hypermedia APIs; The Type-Marshaling Dilemma; Shared schema; URI construction; Payload decoration
  • Narrow media typesThe Hypermedia Solution; Metadata about the data; Metadata about the application; Summary; Identifying Hypermedia : H-Factors; Link Factors; Embedding Links (LE); Outbound Links (LO); Templated Links (LT); Idempotent Links (LI); Non-Idempotent Links (LN); Control Factors; Read Controls (CR); Update Controls (CU); Method Controls (CM); Link Annotation Controls (CL); Summary; Hypermedia Design Elements; Base Format; XML; JSON; HTML; Others; State Transfer; Read-only; Predefined; Ad-Hoc; Domain Style; Specific; General; Agnostic; Application Flow; None; Intrinsic; Applied
  • Identifying the State TransitionsSelecting the Basic Design Elements; The Collection+JSON Document; Objects; The collection object; The error object; Arrays; The template object; The data array; The items array; The links array; The Tasks Application Semantics; The Data Model; The Write Template; Predefined Queries; Sample Data; Task Documents; Design Document; The Server Code; The Collection Response; The Item Response; The Query Representations; Handling Template Writes; The Client Code; The Tasks SPI Example; HTML5 markup; JavaScript; The Tasks Command Line Example; The general approach
  • The add-task.js applicationSummary; Chapter 4. HTML5 Hypermedia; Scenario; Designing the Microblog Media Type; Expressing Application Domain Semantics in HTML5; Identifying the State Transitions; State blocks; Users; Messages; Transfer blocks; Queries; Create new user; Update existing user; Follow a user; Search for users; Add a new message; Selecting the Basic Design Elements; The Microblog Application Profile; Current user and state data; ID attribute values; Class attribute values; Name attributes values; Rel attribute values; Sample Data; User Documents; Message Documents