Learning API Styles: Understanding the Trade-Offs of Common APIs and Choosing the Correct Solutions
暫譯: 學習 API 風格:理解常見 API 的權衡並選擇正確的解決方案
Dynowski, Lukasz, Dulak, Marcin
相關主題
商品描述
When developing a service, whether it's a web service or a microservice, an application programming interface (API) is essential for facilitating data exchange. In this hands-on book, authors Lukasz Dynowski and Marcin Dulak show software developers, engineers, and architects how to design and implement APIs for specific use cases--including RESTful APIs, GraphQL APIs, WebSocket APIs, webhook APIs, gRPC APIs, and messaging protocols.
You'll learn how to determine the appropriate type of API for your application use case and how to tackle design decisions along the way. You'll also learn the trade-offs between various APIs and acquire practical knowledge of how to implement them.
- Explore the origins and evolution of API styles
- Learn the core network protocols that various APIs use
- Determine which encoding to use for your API
- Select an appropriate API style
- Understand the trade-offs of each API style
- Learn how to implement, secure, and document various API styles
- Inspect network packets exchanged between APIs
商品描述(中文翻譯)
當開發一個服務時,無論是網路服務還是微服務,應用程式介面(API)對於促進資料交換是必不可少的。在這本實作導向的書中,作者 Lukasz Dynowski 和 Marcin Dulak 向軟體開發人員、工程師和架構師展示如何為特定用例設計和實作 API,包括 RESTful API、GraphQL API、WebSocket API、webhook API、gRPC API 和消息協議。
您將學習如何確定適合您應用程式用例的 API 類型,以及在設計過程中如何處理設計決策。您還將了解各種 API 之間的權衡,並獲得實際的實作知識。
- 探索 API 風格的起源和演變
- 學習各種 API 使用的核心網路協議
- 確定應為您的 API 使用哪種編碼
- 選擇適合的 API 風格
- 理解每種 API 風格的權衡
- 學習如何實作、安全性和文件化各種 API 風格
- 檢查 API 之間交換的網路封包