---
config:
theme: mc
---
gitGraph
commit id: "commits"
checkout main
commit id: "v1.11.0 PROD"
branch release/1.12.0Based on RESTful API Design — Step By Step Guide
- Держать простым
- Не забывать про методы
- Использовать корректные статус-коды в ответах
- Ресурсы как существительное, не глагол
- Использовать множественное значение
- Использовать пагинацию, а не выдавать всё разом
- В коллекциях возвращать информацию о пагинации
- Использовать квери-параметры для GET запросов, если нужно сузить выборку
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Home extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| homeContent: { | |
| status: false, | |
| content: [], | |
| }, | |
| currentUser: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .row { | |
| box-sizing: border-box; | |
| display: flex; | |
| margin-right: -15px; | |
| margin-left: -15px; | |
| } | |
| [class*="col-xs-"] { | |
| box-sizing: border-box; | |
| padding-right: 15px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .declaration-order { | |
| /* Позиционирование */ | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| left: 0; | |
| z-index: 100; | |
| /* Блочная модель */ |