RESTful Web Clients: Enabling Reuse Through Hypermedia (Paperback)
暫譯: RESTful 網頁客戶端:透過超媒體實現重用

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 提供了豐富的背景知識、易於理解的範例、插圖對話以及清晰的建議,以建立有效的基於超媒體的客戶端應用程式。在這個過程中,您將學會如何利用許多支撐網路的基本原則。

- 將僅限 HTML 的網頁應用程式轉換為 JSON API 服務
- 克服維護純 JSON 風格客戶端應用程式的挑戰
- 使用代表者模式將輸出格式與內部物件模型解耦
- 探索使用 HAL(超文本應用程式語言)構建的客戶端應用程式
- 使用請求、解析、等待循環(Request, Parse, Wait Loop, RPW)模式處理可重用的客戶端
- 瞭解使用 Siren 內容類型構建客戶端應用程式的優缺點
- 通過採用隨時間變化的美學來處理 API 版本控制
- 比較 JSON、HAL、Siren 和 Collection+JSON 客戶端如何處理物件/地址/行動的挑戰
- 製作一個可以消耗多個服務的單一客戶端應用程式