This commit is contained in:
Mario Guerra 2024-08-26 13:48:34 -05:00 коммит произвёл GitHub
Родитель e6040ed56a
Коммит 8dfacdb08e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -6,7 +6,7 @@ title: Handling Errors
## Introduction ## Introduction
In this section, we'll focus on handling errors in your REST API. We'll define error models and demonstrate how to use union types for different response scenarios. In this section, we'll focus on handling errors in your REST API. We'll define error models and demonstrate how to add them as possible responses to your CRUD operations.
## Why Use Error Models? ## Why Use Error Models?

Просмотреть файл

@ -401,6 +401,4 @@ In this example:
## Conclusion ## Conclusion
In this section, we focused on implementing versioning in your REST API. By using the `@versioned` and `@added` decorators, we can manage changes to our API over time without breaking existing clients.
In the next section, we'll dive into creating custom response models for your REST API. In the next section, we'll dive into creating custom response models for your REST API.