1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-01-17 17:44:13 +02:00

style fix

This commit is contained in:
Sergey Konstantinov 2023-03-03 11:53:37 +02:00 committed by GitHub
parent ca3b4d0fc2
commit 26807ebb63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,13 @@
### The API Contexts Pyramid ### The API Contexts Pyramid
The approach we use to design APIs comprises four steps: The approach we use to design APIs comprises four steps:
* defining an application field; * defining an application field
* separating abstraction levels; * separating abstraction levels
* isolating responsibility areas; * isolating responsibility areas
* describing final interfaces. * describing final interfaces.
This four-step algorithm actually builds an API from top to bottom, from common requirements and use case scenarios down to a refined entity nomenclature. In fact, moving this way will eventually conclude with a ready-to-use API that's why we value this approach highly. This four-step algorithm actually builds an API from top to bottom, from common requirements and use case scenarios down to a refined nomenclature of entities. In fact, moving this way will eventually conclude with a ready-to-use API, and that's why we value this approach highly.
It might seem that the most useful pieces of advice are given in the last chapter, but that's not true. The cost of a mistake made at certain levels differs. Fixing the naming is simple; revising the wrong understanding of what the API stands for is practically impossible. It might seem that the most useful pieces of advice are given in the last chapter, but that's not true. The cost of a mistake made at certain levels differs. Fixing the naming is simple; revising the wrong understanding of what the API stands for is practically impossible.
**NB**. Here and throughout we will illustrate API design concepts using a hypothetical example of an API allowing for ordering a cup of coffee in city cafes. Just in case: this example is totally synthetic. If we were to design such an API in the real world, it would probably have very little in common with our fictional example. **NB**. Here and throughout we will illustrate the API design concepts using a hypothetical example of an API allowing for ordering a cup of coffee in city cafes. Just in case: this example is totally synthetic. If we were to design such an API in the real world, it would probably have very little in common with our fictional example.