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.Too many...

Descripción completa

Detalles Bibliográficos
Autor principal: Amundsen, Michael (-)
Otros Autores: St. Laurent, Simon (illustrator), Romano, Robert (Illustrator), illustrator
Formato: Libro electrónico
Idioma:Inglés
Publicado: Beijing : O'Reilly [2012]
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628247006719
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
  • SummaryWhat's Next?; Chapter 2. XML Hypermedia; Scenario; Designing the Maze XML Media Type; Identifying the State Transitions; Selecting the Basic Design Elements; The Maze+XML Document; The collection element; The item element; The cell element; The error element; Sample Data; The Server Code; The Collection State Response; The Item State Response; The Cell State Response; The Exit State Response; The Client Code; Maze Game Example; HTML5 Markup; JavaScript; Maze Bot Example; HTML5 Markup; JavaScript; Summary; Chapter 3. JSON Hypermedia; Scenario; Designing the Collection+JSON Media-Type
  • 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
  • Follow Documents