The Design of Web Apis, 2/e (Paperback)
暫譯: Web API 設計(第 2 版,平裝)

Lauret, Arnaud

  • 出版商: Manning
  • 出版日期: 2025-07-22
  • 售價: $2,240
  • 貴賓價: 9.5$2,128
  • 語言: 英文
  • 頁數: 536
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1633438147
  • ISBN-13: 9781633438149
  • 相關分類: Web API
  • 立即出貨 (庫存=1)

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

商品描述

Learn how to design web APIs that are a delight to use and maintain.

Thousands of developers have followed renowned API expert Arnaud Lauret's guidance to create APIs that are flexible, secure, and easily integrated. This new edition of the bestselling The Design of Web APIs covers the latest updates to the OpenAPI standard, teaches you to streamline and standardize API design decisions with rationale and automation, and gives you insights you can apply to other API styles, such as gRPC. You'll quickly see how a well-designed and properly-documented API gives your users autonomy--and saves you from constant explanations and hand-holding.

This fully revised second edition of The Design of Web APIs teaches you the principles and techniques you need to design easy-to-consume public and private web APIs. In it, you'll learn how to:

- Analyze requirements to identify API capabilities for versatile, reusable designs
- Create HTTP-based REST APIs with CRUD, batch/bulk, or long operations
- Design interoperable, user-friendly APIs with seamless operations and data flow
- Ensure secure, efficient APIs while overcoming limitations and constraints
- Modify APIs without breaking compatibility, evaluating consequences carefully
- Future-proof your APIs and choose effective versioning strategies
- Document REST APIs using OpenAPI and JSON Schema for seamless implementation
- Streamline and standardize API design decisions with rationale and automation

The Design of Web APIs, Second Edition teaches vital skills for gathering requirements, balancing business and technical goals and constraints, and adopting a consumer-first mindset. Each chapter is packed full of hands-on examples, including designing an Online Shopping API and user-friendly banking operations, and over seventy exercises to help your new skills stick. Plus, you'll explore paradigms applicable beyond REST APIs, and fully describe and document your APIs with OpenAPI and JSON Schema. Your web APIs will soon be easier to consume and your clients--internal and external--will be happier than ever!

About the technology

Web APIs open up your software to developers, exposing features, and capabilities to other programs. Well-designed web APIs are a joy. The bad ones are a nightmare, with endless impact on system performance, developer productivity, and end-user experience. This book shows you how to design APIs your fellow developers will love to use.

About the book

The Design of Web APIs, Second Edition teaches you to design efficient and adaptable REST APIs. This revised and rewritten second edition contains the latest updates to the OpenAPI standard, along with insights you can apply to other API styles such as GraphQL. Learn vital skills for gathering requirements, creating easy-to-consume public and private web APIs, and handling non-backward compatible modifications and versioning.

What's inside

- Design reusable, user-friendly and interoperable APIs
- Document your APIs with OpenAPI and JSON Schema
- Create secure and efficient APIs by design
- Streamline and standardize API design decisions

About the reader

Written for developers with experience building and consuming APIs.

About the author

Arnaud Lauret runs the API Handyman blog and is a frequent speaker at API conferences. He currently works as an API Industry Researcher at Postman.

Table of Contents

1 What is API design?
Part 1
2 Identifying API capabilities
3 Observing operations from the REST angle
4 Representing operations with HTTP
5 Modeling data
6 Describing HTTP operations with OpenAPI
7 Describing data with JSON Schema in OpenAPI
Part 2
8 Designing user-friendly, interoperable data
9 Designing user-friendly, interoperable operations
10 Designing user-friendly, interoperable operation flows
11 Designing user-friendly, interoperable APIs
Part 3
12 Designing a secure API
13 Designing an efficient API
14 Adapting the API design to the context
15 Modifying an API
Part 4
16 Facilitating API design decision-making
17 Optimizing an OpenAPI document
18 Automating API design guidelines
19 Enriching API design artifacts
A Solutions to the exercises

Get a free eBook (PDF or ePub) from Manning as well as access to the online liveBook format (and its AI assistant that will answer your questions in any language) when you purchase the print book.

商品描述(中文翻譯)

學習如何設計易於使用與維護、令人愉悅的 Web API。

數千名開發人員遵循知名 API 專家 Arnaud Lauret 的指導,打造出具備彈性、安全性且易於整合的 API。本暢銷書《The Design of Web APIs》全新版本涵蓋 OpenAPI 標準的最新更新,教你運用原則與自動化功能,簡化並標準化 API 設計決策,還能讓你深入了解可套用至其他 API 風格(例如 gRPC)的設計方法。你很快就會發現,設計完善且文件齊全的 API 能讓使用者擁有自主性,也能讓你免於不斷解釋與手把手協助。

《The Design of Web APIs》全面修訂的第二版,教你設計易於使用的公開與私有 Web API 所需的原則與技術。你將學會如何:

- 分析需求,找出 API 所需的功能,打造具備多用途且可重複使用的設計
- 建立以 HTTP 為基礎的 REST API,支援 CRUD、批次/大量處理,以及長時間執行的作業
- 設計具備互通性且方便使用的 API,實現順暢的操作與資料流
- 確保 API 的安全性與效率,同時克服限制與約束
- 在不破壞相容性的情況下修改 API,並仔細評估可能的影響
- 讓 API 做好面向未來的準備,並選擇有效的版本控制策略
- 使用 OpenAPI 與 JSON Schema 記錄 REST API,以實現順暢的開發
- 運用設計依據與自動化功能,簡化並標準化 API 設計決策

《The Design of Web APIs, Second Edition》教導你收集需求、平衡商業與技術目標及限制,以及採取消費者優先思維所需的重要技能。每一章都充滿實作範例,包括設計 Online Shopping API 與方便使用的銀行業務操作,並提供超過七十個練習,協助你牢牢掌握新技能。此外,你還將探索適用於 REST API 以外的設計典範,並使用 OpenAPI 與 JSON Schema 完整描述及記錄 API。你的 Web API 很快就會更容易使用,而你的客戶——無論是內部或外部客戶——也將比以往更加滿意!

關於這項技術

Web API 能向開發人員開放你的軟體,將功能與能力提供給其他程式使用。設計良好的 Web API 令人愉悅;設計不佳的 API 則是一場噩夢,會不斷影響系統效能、開發人員生產力與終端使用者體驗。本書將教你如何設計出其他開發人員會樂於使用的 API。

關於本書

《The Design of Web APIs, Second Edition》教你設計高效且具適應性的 REST API。這本重新修訂與改寫的第二版,包含 OpenAPI 標準的最新更新,以及可套用至其他 API 風格(例如 GraphQL)的深入見解。學習收集需求、建立易於使用的公開與私有 Web API,以及處理不具向後相容性的修改與版本控制所需的重要技能。

內容特色

- 設計可重複使用、方便使用且具互通性的 API
- 使用 OpenAPI 與 JSON Schema 記錄 API
- 從設計層面建立安全且高效的 API
- 簡化並標準化 API 設計決策

適合讀者

適合具備 API 建置與使用經驗的開發人員閱讀。

關於作者

Arnaud Lauret 經營 API Handyman 部落格,並經常在 API 相關會議中演講。目前擔任 Postman 的 API Industry Researcher。

目錄

1 什麼是 API 設計?
第一部分
2 辨識 API 功能
3 從 REST 角度觀察操作
4 使用 HTTP 表達操作
5 建模資料
6 使用 OpenAPI 描述 HTTP 操作
7 在 OpenAPI 中使用 JSON Schema 描述資料
第二部分
8 設計方便使用且具互通性的資料
9 設計方便使用且具互通性的操作
10 設計方便使用且具互通性的操作流程
11 設計方便使用且具互通性的 API
第三部分
12 設計安全的 API
13 設計高效的 API
14 根據情境調整 API 設計
15 修改 API
第四部分
16 促進 API 設計決策
17 最佳化 OpenAPI 文件
18 將 API 設計準則自動化
19 豐富 API 設計產出物
A 練習解答

購買紙本書後,即可從 Manning 免費取得電子書(PDF 或 ePub),並存取線上 liveBook 版本,以及能以任何語言回答問題的 AI 助理。