Building Hypermedia APIs with HTML5 and Node: Creating Evolvable Hypermedia Applications

Front Cover
"O'Reilly Media, Inc.", Nov 23, 2011 - Computers - 244 pages

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
 

Contents

Chapter 1 Understanding Hypermedia
1
Chapter 2 XML Hypermedia
35
Chapter 3 JSON Hypermedia
57
Chapter 4 HTML5 Hypermedia
95
Chapter 5 Documenting Hypermedia
135
Afterword
169
Appendix A References
171
Appendix B Additional Reading
177
Appendix C Maze+XML Media Type
179
Appendix D Collection+JSON Media Type
187
Appendix E Microblogging HTML Semantic Profile
199
Appendix F IANA Media Type Registration Document
209
Appendix G IETF Link Relations Internet Draft
211
Appendix H Source Code Software and Installation Notes
217
Copyright

Other editions - View all

Common terms and phrases

About the author (2011)

An internationally known author and lecturer, Mike Amundsen travels throughout the United States and Europe consulting and speaking on a wide range of topics including distributed network architecture, Web application development, Cloud computing, and other subjects. His recent work focuses on the role hypermedia plays in creating and maintaining applications that can successfully evolve over time. He has more than a dozen books to his credit and recently contributed to the book "RESTful Web Services Cookbook" (by Subbu Allamaraju). When he is not working, Mike enjoys spending time with his family in Kentucky, USA.

Bibliographic information