REST API Design Rulebook (Paperback)

Mark Masse

  • 出版商: O'Reilly
  • 出版日期: 2011-11-29
  • 售價: $1,180
  • 貴賓價: 9.5$1,121
  • 語言: 英文
  • 頁數: 116
  • 裝訂: Paperback
  • ISBN: 1449310508
  • ISBN-13: 9781449310509
  • 海外代購書籍(需單獨結帳)

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

商品描述

In today’s market, where rival web services compete for attention, a well-designed REST API is a must-have feature. This concise book presents a set of API design rules, drawn primarily from best practices that stick close to the Web’s REST architectural style. Along with rules for URI design and HTTP use, you’ll learn guidelines for media types and representational forms.

REST APIs are ubiquitous, but few of them follow a consistent design methodology. Using these simple rules, you will design web service APIs that adhere to recognized web standards. To assist you, author Mark Massé introduces the Web Resource Modeling Language (WRML), a conceptual framework he created for the design and implementation of REST APIs.

  • Learn design rules for addressing resources with URIs
  • Apply design principles to HTTP’s request methods and response status codes
  • Work with guidelines for conveying metadata through HTTP headers and media types
  • Get design tips to address the needs of client programs, including the special needs of browser-based JavaScript clients
  • Understand why REST APIs should be designed and configured, not coded

商品描述(中文翻譯)

在競爭激烈的今天市場上,一個設計良好的 REST API 是一個必備的功能。這本簡明的書籍介紹了一套 API 設計規則,主要來自於貼近 Web 的 REST 架構風格的最佳實踐。除了 URI 設計和 HTTP 使用的規則外,您還將學習有關媒體類型和表現形式的指南。

REST API 是無所不在的,但很少有它們遵循一致的設計方法論。使用這些簡單的規則,您將能夠設計符合公認 Web 標準的 Web 服務 API。為了幫助您,作者 Mark Massé 引入了 Web 資源建模語言(WRML),這是他為 REST API 的設計和實施創建的一個概念框架。

本書將教您以下內容:
- 學習使用 URI 地址資源的設計規則
- 將設計原則應用於 HTTP 的請求方法和響應狀態碼
- 使用指南通過 HTTP 標頭和媒體類型傳遞元數據
- 獲得設計提示以滿足客戶端程序的需求,包括基於瀏覽器的 JavaScript 客戶端的特殊需求
- 理解為什麼 REST API 應該設計和配置,而不是編碼