RESTful Web Clients: Enabling Reuse Through Hypermedia (Paperback)

Mike Amundsen

買這商品的人也買了...

商品描述

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 HAL—Hypertext 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

商品描述(中文翻譯)

強大的基於網頁的 REST 和超媒體風格的 API 在每天都變得越來越普遍,但是,許多開發人員並沒有將相同的技術和模式應用於超媒體客戶端,而是依賴於自定義的客戶端代碼。通過這本實用指南,您將學習如何從一次性實現轉向穩定、靈活和可重用的通用客戶端應用程序。

作者 Mike Amundsen 提供了廣泛的背景知識、易於理解的示例、生動的對話和明確的建議,以建立有效的基於超媒體的客戶端應用程序。在此過程中,您將學習如何運用許多支撐 Web 的基本原則。

- 將僅限於 HTML 的 Web 應用程序轉換為 JSON API 服務
- 克服維護純 JSON 風格客戶端應用程序的挑戰
- 使用 representor 模式將輸出格式與內部對象模型解耦
- 探索使用 HAL(Hypertext Application Language)構建的客戶端應用程序
- 使用 Request、Parse、Wait Loop(RPW)模式處理可重用的客戶端
- 了解使用 Siren 內容類型構建客戶端應用程序的優缺點
- 通過採用隨時間變化的美學來處理 API 版本控制
- 比較 JSON、HAL、Siren 和 Collection+JSON 客戶端如何處理對象/地址/操作的挑戰
- 創建一個能夠使用多個服務的單一客戶端應用程序