Книги и журналы » Компьютерная литература » Программирование (книги)
API Design PatternsГод издания: 2021
Автор: Geewax J.
Издательство: Manning
ISBN: 978-1617295850
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 481
Описание: API Design Patterns lays out a set of design principles for building internal and public-facing APIs.
A collection of best practices and design standards for web and internal APIs.
API Design Patterns reveals best practices for building stable, user-friendly APIs. These design patterns can be applied to solve common API problems and flexibly altered to fit your specific needs. Hands-on examples and relevant use-cases illustrate patterns for API fundamentals, advanced functionalities, and even uncommon scenarios.
In API Design Patterns you will learn:
- Guiding principles for API patterns
- Fundamentals of resource layout and naming
- Handling data types for any programming language
- Standard methods that ensure predictability
- Field masks for targeted partial updates
- Authentication and validation methods for secure APIs
- Collective operations for moving, managing, and deleting data
- Advanced patterns for special interactions and data transformations
[spoiler="Примеры страниц (скриншоты)"]

[/spoiler]
[spoiler="Оглавление"]
PART 1 INTRODUCTION 1
1. Introduction to APIs 3
2. Introduction to API design patterns 14
PART 2 DESIGN PRINCIPLES 31
3. Naming 33
4. Resource scope and hierarchy 47
5. Data types and defaults 65
PART 3 FUNDAMENTALS 85
6. Resource identification 87
7. Standard methods 104
8. Partial updates and retrievals 122
9. Custom methods 141
10. Long-running operations 154
11. Rerunnable jobs 175
PART 4 RESOURCE RELATIONSHIPS 187
12. Singleton sub-resources 189
13. Cross references 200
14. Association resources 207
15. Add and remove custom methods 218
16. Polymorphism 225
PART 5 COLLECTIVE OPERATIONS 237
17. Copy and move 239
18. Batch operations 254
19. Criteria-based deletion 270
20. Anonymous writes 278
21. Pagination 285
22. Filtering 299
23. Importing and exporting 313
PART 6 SAFETY AND SECURITY 333
24. Versioning and compatibility 335
25. Soft deletion 357
26. Request deduplication 371
27. Request validation 383
28. Resource revisions 390
29. Request retrial 405
30. Request authentication 416
[/spoiler]