1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-12-17 22:17:24 +02:00
Files
The-API-Book/docs/index.html
Sergey Konstantinov 476ba0a016 fresh build
2025-08-20 15:57:13 +03:00

172 lines
14 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" href="assets/favicon.png" />
<title>
Sergey Konstantinov. The API
</title>
<meta
name="description"
content="API-first development is one of the hottest technical topics nowadays since many companies have started to realize that APIs serves as a multiplier to their opportunities — but it amplifies the design mistakes as well. This book is written to share expertise and describe best practices in designing and developing APIs. It comprises six sections dedicated to the following topics: the API design, API patterns, maintaining backward compatibility, HTTP APIs & the REST architectural principles, SDKs and UI libraries, API product management."
/>
<meta property="og:type" content="article" />
<meta
property="og:title"
content="Sergey Konstantinov. The API"
/>
<meta
property="og:description"
content="API-first development is one of the hottest technical topics nowadays since many companies have started to realize that APIs serves as a multiplier to their opportunities — but it amplifies the design mistakes as well. This book is written to share expertise and describe best practices in designing and developing APIs. It comprises six sections dedicated to the following topics: the API design, API patterns, maintaining backward compatibility, HTTP APIs & the REST architectural principles, SDKs and UI libraries, API product management."
/>
<meta property="og:image" content="assets/header.png" />
<meta
property="og:url"
content="https://github.com/twirl/The-API-Book"
/>
<link rel="stylesheet" href="assets/fonts.css"/>
<link rel="stylesheet" href="assets/landing.css"/>
</head>
<body>
<nav>
<img
class="header"
src="assets/header.jpg"
alt="Sergey Konstantinov. The API"
/><br />
<header>
<h1>Sergey Konstantinov<br/><span class="title">The API</span></h1>
<h2>Free e-book</h2>
</header>
<br />Subscribe for updates on <a class="github" href="https://github.com/twirl/The-API-Book"></a>
<br/>Follow me on <a class="linkedin" href="https://www.linkedin.com/in/twirl/"></a> · <a class="twitter" href="https://x.com/blogovodoved"></a> · <a class="substack" href="https://twirl.substack.com/">Substack</a>
<br />Support this work: buy it on <a class="kindle" href="https://www.amazon.com/gp/product/B09RHH44S5/">Amazon Kindle</a> · <a class="apple" href="http://books.apple.com/us/book/id6467567700">Apple Books</a> · <a class="leanpub" href="https://leanpub.com/sergey-konstantinov-the-api/">Leanpub</a> · <a class="gumroad" href="https://twirl.gumroad.com/l/Sergey-Konstantinov-The-API">Gumroad</a>
<br />Share: <a class="share share-facebook" href="https://www.facebook.com/sharer.php?u=https%3A%2F%2Ftwirl.github.io%2FThe-API-Book%2F" target="_blank"></a> · <a class="share share-twitter" href="https://x.com/intent/tweet?url=https%3A%2F%2Ftwirl.github.io%2FThe-API-Book%2F" target="_blank"></a> · <a class="share share-linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Ftwirl.github.io%2FThe-API-Book%2F" target="_blank"></a> · <a class="share share-reddit" href="https://www.reddit.com/submit?url=https%3A%2F%2Ftwirl.github.io%2FThe-API-Book%2F&title=The%20API%20by%20Sergey%20Konstantinov%20%E2%80%94%20a%20book%20about%20designing%20APIs%2C%20extending%20them%20and%20finding%20a%20proper%20place%20in%20the%20market" target="_blank"></a><br/>⚙️⚙️⚙️
</nav>
<p>API-first development is one of the hottest technical topics nowadays since many companies have started to realize that APIs serves as a multiplier to their opportunities — but it amplifies the design mistakes as well.</p>
<p>This book is written to share expertise and describe best practices in designing and developing APIs. It comprises six sections dedicated to the following topics:</p>
<ul><li>— The API design</li>
<li>— API patterns</li>
<li>— Backward compatibility</li>
<li>— HTTP APIs & the REST architectural principles</li>
<li>— SDKs and UI libraries</li>
<li>— API product management.</ul>
<p>Illustration &amp; inspiration: <a href="https://www.instagram.com/art.mari.ka/">art.mari.ka</a>.</p>
<p>You might download ‘The API’ in <a href="API.en.pdf">PDF</a> / <a href="API.en.epub">EPUB</a> or <a href="API.en.html">read it online</a>.
</p>
<h3>Table of Contents</h3>
<ul class="toc"><li>
<h4><a href="API.en.html#introduction">Introduction</a></h4>
<ul class="section">
<li><a href="API.en.html#intro-structure">Chapter 1. On the Structure of This Book</a></li>
<li><a href="API.en.html#intro-api-definition">Chapter 2. The API Definition</a></li>
<li><a href="API.en.html#intro-api-quality">Chapter 3. API Quality Criteria</a></li>
<li><a href="API.en.html#intro-api-choosing-solutions">Chapter 4. Choosing Solutions for API Development</a></li>
<li><a href="API.en.html#intro-api-first-approach">Chapter 5. The API-First Approach</a></li>
<li><a href="API.en.html#intro-back-compat">Chapter 6. On Backward Compatibility</a></li>
<li><a href="API.en.html#intro-versioning">Chapter 7. On Versioning</a></li>
<li><a href="API.en.html#intro-terms-notation">Chapter 8. Terms and Notation Keys</a></li>
</ul>
</li>
<li>
<h4><a href="API.en.html#section-i-the-api-design">Section I. The API Design</a></h4>
<ul class="section">
<li><a href="API.en.html#api-design-context-pyramid">Chapter 9. The API Contexts Pyramid</a></li>
<li><a href="API.en.html#api-design-defining-field">Chapter 10. Defining an Application Field</a></li>
<li><a href="API.en.html#api-design-separating-abstractions">Chapter 11. Separating Abstraction Levels</a></li>
<li><a href="API.en.html#api-design-isolating-responsibility">Chapter 12. Isolating Responsibility Areas</a></li>
<li><a href="API.en.html#api-design-describing-interfaces">Chapter 13. Describing Final Interfaces</a></li>
</ul>
</li>
<li>
<h4><a href="API.en.html#section-ii-the-api-patterns">Section II. The API Patterns</a></h4>
<ul class="section">
<li><a href="API.en.html#api-patterns-context">Chapter 14. On Design Patterns in the API Context</a></li>
<li><a href="API.en.html#api-patterns-aa">Chapter 15. Authenticating Partners and Authorizing API Calls</a></li>
<li><a href="API.en.html#api-patterns-sync-strategies">Chapter 16. Synchronization Strategies</a></li>
<li><a href="API.en.html#api-patterns-weak-consistency">Chapter 17. Eventual Consistency</a></li>
<li><a href="API.en.html#api-patterns-async">Chapter 18. Asynchronicity and Time Management</a></li>
<li><a href="API.en.html#api-patterns-lists">Chapter 19. Lists and Accessing Them</a></li>
<li><a href="API.en.html#api-patterns-push-vs-poll">Chapter 20. Bidirectional Data Flows. Push and Poll Models</a></li>
<li><a href="API.en.html#api-patterns-async-event-processing">Chapter 21. Multiplexing Notifications. Asynchronous Event Processing</a></li>
<li><a href="API.en.html#api-patterns-atomicity">Chapter 22. Atomicity of Bulk Changes</a></li>
<li><a href="API.en.html#api-patterns-partial-updates">Chapter 23. Partial Updates</a></li>
<li><a href="API.en.html#api-patterns-degrading">Chapter 24. Degradation and Predictability</a></li>
</ul>
</li>
<li>
<h4><a href="API.en.html#section-iii-the-backward-compatibility">Section III. The Backward Compatibility</a></h4>
<ul class="section">
<li><a href="API.en.html#back-compat-statement">Chapter 25. The Backward Compatibility Problem Statement</a></li>
<li><a href="API.en.html#back-compat-iceberg-waterline">Chapter 26. On the Waterline of the Iceberg</a></li>
<li><a href="API.en.html#back-compat-abstracting-extending">Chapter 27. Extending through Abstracting</a></li>
<li><a href="API.en.html#back-compat-strong-coupling">Chapter 28. Strong Coupling and Related Problems</a></li>
<li><a href="API.en.html#back-compat-weak-coupling">Chapter 29. Weak Coupling</a></li>
<li><a href="API.en.html#back-compat-universal-interfaces">Chapter 30. Interfaces as a Universal Pattern</a></li>
<li><a href="API.en.html#back-compat-serenity-notepad">Chapter 31. The Serenity Notepad</a></li>
</ul>
</li>
<li>
<h4><a href="API.en.html#section-iv-http-apis-the-rest-architectural-principles">Section IV. HTTP APIs &amp; the REST Architectural Principles</a></h4>
<ul class="section">
<li><a href="API.en.html#http-api-concepts">Chapter 32. On the HTTP API Concept. Paradigms of Developing Client-Server Communication</a></li>
<li><a href="API.en.html#http-api-pros-and-cons">Chapter 33. Advantages and Disadvantages of HTTP APIs Compared to Alternative Technologies</a></li>
<li><a href="API.en.html#http-api-rest-myth">Chapter 34. The REST Myth</a></li>
<li><a href="API.en.html#http-api-requests-semantics">Chapter 35. Components of an HTTP Request and Their Semantics</a></li>
<li><a href="API.en.html#http-api-rest-organizing">Chapter 36. Organizing HTTP APIs Based on the REST Principles</a></li>
<li><a href="API.en.html#http-api-urls-crud">Chapter 37. Designing a Nomenclature of URLs. The CRUD Operations</a></li>
<li><a href="API.en.html#http-api-errors">Chapter 38. Working with HTTP API Errors</a></li>
<li><a href="API.en.html#http-api-final-recommendations">Chapter 39. Final Provisions and General Recommendations</a></li>
</ul>
</li>
<li>
<h4><a href="API.en.html#section-v-sdks-ui-libraries">Section V. SDKs &amp; UI Libraries</a></h4>
<ul class="section">
<li><a href="API.en.html#sdk-toc-technology-overview">Chapter 40. On Terminology. An Overview of Technologies for UI Development</a></li>
<li><a href="API.en.html#sdk-problems-solutions">Chapter 41. SDKs: Problems and Solutions</a></li>
<li><a href="API.en.html#sdk-ui-components">Chapter 42. Problems of Introducing UI Components</a></li>
<li><a href="API.en.html#sdk-decomposing">Chapter 43. Decomposing UI Components</a></li>
<li><a href="API.en.html#sdk-mv-frameworks">Chapter 44. The MV* Frameworks</a></li>
<li><a href="API.en.html#sdk-backend-driven">Chapter 45. The Backend-Driven UI</a></li>
<li><a href="API.en.html#sdk-shared-resources">Chapter 46. Shared Resources and Asynchronous Locks</a></li>
<li><a href="API.en.html#sdk-computed-properties">Chapter 47. Computed Properties</a></li>
<li><a href="API.en.html#sdk-conclusion">Chapter 48. Conclusion</a></li>
</ul>
</li>
<li>
<h4><a href="API.en.html#section-vi-the-api-product">Section VI. The API Product</a></h4>
<ul class="section">
<li><a href="API.en.html#api-product">Chapter 49. The API as a Product</a></li>
<li><a href="API.en.html#api-product-business-models">Chapter 50. API Business Models</a></li>
<li><a href="API.en.html#api-product-vision">Chapter 51. Developing a Product Vision</a></li>
<li><a href="API.en.html#api-product-devrel">Chapter 52. Communicating with Developers</a></li>
<li><a href="API.en.html#api-product-business-comms">Chapter 53. Communicating with Business Owners</a></li>
<li><a href="API.en.html#api-product-lineup">Chapter 54. An API Services Lineup</a></li>
<li><a href="API.en.html#api-product-kpi">Chapter 55. API Key Performance Indicators</a></li>
<li><a href="API.en.html#api-product-antifraud">Chapter 56. Identifying Users and Preventing Fraud</a></li>
<li><a href="API.en.html#api-product-tos-violations">Chapter 57. The Technical Means of Preventing ToS Violations</a></li>
<li><a href="API.en.html#api-product-customer-support">Chapter 58. Supporting Customers</a></li>
<li><a href="API.en.html#api-product-documentation">Chapter 59. Documentation</a></li>
<li><a href="API.en.html#api-product-testing">Chapter 60. Testing Environments</a></li>
<li><a href="API.en.html#api-product-expectations">Chapter 61. Managing Expectations</a></li>
</ul>
</li>
<li><h4>Live Examples</h3>
<ul class="section"><li><a href="examples/01. Decomposing UI Components/index.html">Decomposing UI Components</a></li>
</ul>
</li>
</ul>
<p>This book is distributed under the <a href="https://creativecommons.org/licenses/by-nc/4.0/">Creative Commons Attribution-NonCommercial 4.0 International licence</a>.</p>
<p>Source code available at <a href="https://github.com/twirl/The-API-Book">github.com/twirl/The-API-Book</a></p>
<h3><a name="about-author">About the Author</a></h3>
<section class="about-me">
<aside><img src="https://konstantinov.cc/static/me.png"/><br/>Photo by <a href="https://linkedin.com/in/zloylos/">Denis Hananein</a></aside>
<div class="content">
<p>Sergey Konstantinov has been working with APIs for over a decade. He began his career as a software engineer in the Maps API division at Yandex and eventually became the head of the service. In this role, he was responsible for both technical architecture and product management.</p>
<p>During this tenure, Sergey gained unique experience in building world-class APIs with a daily audience of tens of millions, planning roadmaps for such a service, and delivering numerous public speeches. Additionaly, he served as a member of the W3C Technical Architecture Group for a year and a half.</p>
<p>After being nine years in Maps, Sergey transitioned to technical lead roles in other departments and companies. In these positions, he led integration efforts and was responsible for the technical architecture of entire business units. Currently, Sergey resides in Tallinn, Estonia, and works as a staff software engineer.</p></div>
</section>
<p>Книгу «API» можно <a href="index.ru.html">читать по-русски</a>.</p>
</body>
</html>