Read online ebook Mike Amundsen - RESTful Web Clients : Learning Client Hypermedia in MOBI, TXT, EPUB
9781491921906 English 1491921900 Powerful web-based REST and hypermedia-style APIs are becoming more common every day but, instead of applying the same techniques and patterns to hypermedia clients, many developers rely on custom client code. With this practical guide, you'll learn how to move from one-off implementations to general-purpose client apps that are stable, flexible, and reusable. Author Mike Amundsen provides extensive background, easy-to-follow examples, illustrative dialogues, and clear recommendations for building effective hypermedia-based client applications. Along the way, you'll learn how to harness many of the basic principles that underpin the Web. Convert HTML-only web apps into a JSON API service Overcome the challenges of maintaining plain JSON-style client apps Decouple the output format from the internal object model with the representor pattern Explore client apps built with HALHypertext Application Language Tackle reusable clients with the Request, Parse, Wait Loop (RPW) pattern Learn the pros and cons of building client apps with the Siren content type Deal with API versioning by adopting a change-over-time aesthetic Compare how JSON, HAL, Siren, and Collection+JSON clients handle the objects/addresses/actions challenge Craft a single client application that can consume multiple services, Web-based REST and Hypermedia services are becoming more common every day, but very few client libraries take advantage of these powerful API featuresmostly because the techniques and patterns needed to create successful hypermedia clients have been ignored. Yet, when done right, hypermedia-based client applications exhibit more stability and flexibility than typical one-off custom client code. This practical book takes you on a journey from custom bespoke implementations to powerful general-purpose client applications and, along the way, shows how you can harness many of the basic principles that underpin the Web. Throughout the book, you'll find practical, approachable examples and dialogs, as well as clear guidance on how to understand this increasingly important conversation.
9781491921906 English 1491921900 Powerful web-based REST and hypermedia-style APIs are becoming more common every day but, instead of applying the same techniques and patterns to hypermedia clients, many developers rely on custom client code. With this practical guide, you'll learn how to move from one-off implementations to general-purpose client apps that are stable, flexible, and reusable. Author Mike Amundsen provides extensive background, easy-to-follow examples, illustrative dialogues, and clear recommendations for building effective hypermedia-based client applications. Along the way, you'll learn how to harness many of the basic principles that underpin the Web. Convert HTML-only web apps into a JSON API service Overcome the challenges of maintaining plain JSON-style client apps Decouple the output format from the internal object model with the representor pattern Explore client apps built with HALHypertext Application Language Tackle reusable clients with the Request, Parse, Wait Loop (RPW) pattern Learn the pros and cons of building client apps with the Siren content type Deal with API versioning by adopting a change-over-time aesthetic Compare how JSON, HAL, Siren, and Collection+JSON clients handle the objects/addresses/actions challenge Craft a single client application that can consume multiple services, Web-based REST and Hypermedia services are becoming more common every day, but very few client libraries take advantage of these powerful API featuresmostly because the techniques and patterns needed to create successful hypermedia clients have been ignored. Yet, when done right, hypermedia-based client applications exhibit more stability and flexibility than typical one-off custom client code. This practical book takes you on a journey from custom bespoke implementations to powerful general-purpose client applications and, along the way, shows how you can harness many of the basic principles that underpin the Web. Throughout the book, you'll find practical, approachable examples and dialogs, as well as clear guidance on how to understand this increasingly important conversation.