twirl / the-api-book Goto Github PK
View Code? Open in Web Editor NEW‘The API’ book by Sergey Konstantinov
License: Other
‘The API’ book by Sergey Konstantinov
License: Other
src/ru/clean-copy/02-Раздел I. Проектирование API/03.md
: взамодействие
, перепрыгывания
.src/en/clean-copy/01-Introduction/06.md
: sentenses
.src/en/clean-copy/02-Section I. The API Design/03.md
: abovementioned
Suggesting to use https://github.com/hcodes/yaspeller
Опечатка в
Вопрос этот с подвохом: в том виде, как мы описали партнёрскЫй API
Тут слово "нетразитивным" кажется должно быть "нетранзитивным"
Привет! Спасибо за труд :)
У меня возник вопрос на который я не нашел ответа в книжке. Почему для endpoint /search используется POST, а не GET? С одной стороны интересны причины и точка зрения, а с другой стороны, как мне кажется, в книгу было бы круто добавить это объяснение, так как POST это про создание данных на сервере, а GET про чтение (но с другой стороны есть идемпотентность и история поиска).
volume.format vs formatVolume в комментарии ниже.
- либо в запросе содержатся только идентификаторы, и имплементации методов сами обратятся за нужными данными через какие-то внутренние API.
есть предложение по этой строке, по аналогии с англоязычным вариантом
or the request contains only data identifiers, and next in chain handler will request pieces of data it needs via some internal APIs.
кажется, более корректным было бы так:
В самом конце:
...каким своим срезом она выступает во взаимодействии с каким объектами.
В псевдокоде, вероятно, должно быть app.display(matchingCoffeeMachines);
вместо app.display(coffeeMachines);
Согласно определению: API — это программный интерфейс приложений. То есть у аббревиатуры API мужской род. Если это знать то, использование API в среднем роде "бьёт по ушам" также как и "хорошее кофе".
Hard to read generated PDF file.
Suggesting to add styles before generate PDF:
const printStyles = `
@media print {
* {
text-align: left;
line-height: 1.55;
}
code, pre {
white-space: pre-wrap;
}
h1, h2, h3, h4, h5, h6 {
page-break-inside: avoid;
}
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
content: "";
display: block;
height: 100px;
margin-bottom: -100px;
}
p {
orphans: 2;
widows: 2;
}
}`;
async function buildPdf() {
//…
await page.addStyleTag({ content: printStyles });
//…
}
Thx for book, sir.
В главе 11, пункт 9, скорее всего, неправильный падеж в первом же предложении:
Правило можно ещё сформулировать так: не заставляйте клиент гадать.
Полагаю, слово «клиент» планировалось написать в родительном падеже: «клиента».
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.