The Key to Perfect API Responses in NestJS

preview_player
Показать описание
We learn how to build consistent API responses in NestJS to ensure a predictable and easy to maintain API, by leveraging interceptors.

Timestamps:
----------------------
0:00 - Predictable API Responses
0:58 - Leveraging NestJS interceptors
3:30 - Testing our API responses
Рекомендации по теме
Комментарии
Автор

Great content + content delivery, thank you for sharing this!

Naya-ssvs
Автор

When you mentioned same shape of response I have immediately remembered of such solution that you have provided. I like that I have learned something over the years xD

beloaded
Автор

Also worth taking a look at TS-Rest for type-safe API contracts with Zod. The point is to be consistent and predictable indeed, also over multiple projects like API (docs), backend and frontend :)

cockpitconnect
Автор

how about making a video about OpenApi (Swagger) and how to integrate it to a nestjs backend in the right way ?

maximvoicu