← Back to Blog
Series · 5 parts

Building a REST API with NestJS, PostgreSQL, Swagger and Prisma

Build a complete REST API with NestJS and Prisma, covering validation, relational data, error handling, and authentication.

EducationJune 3, 2022Updated July 8, 2026

Building a REST API with NestJS and Prisma

Learn how to build a backend REST API with NestJS, Prisma ORM 7, PostgreSQL and Swagger. Set up the project, model your data, build the API and document it with Swagger. Fully updated for Prisma 7 and NestJS 11.

EducationJuly 19, 2022Updated July 8, 2026

Building a REST API with NestJS and Prisma: Input Validation & Transformation

Learn how to add input validation and transformation to a NestJS REST API with ValidationPipe, class-validator and ParseIntPipe. Fully updated for Prisma ORM 7 and NestJS 11.

EducationDecember 14, 2022Updated July 8, 2026

Building a REST API with NestJS and Prisma: Error Handling

Learn how to handle Prisma errors in a NestJS REST API: throw exceptions in controllers and build an exception filter for Prisma error codes like P2002. Updated for Prisma ORM 7 and NestJS 11.

EducationMarch 23, 2023Updated July 8, 2026

Building a REST API with NestJS and Prisma: Handling Relational Data

Learn how to handle relational data in a REST API built with NestJS and Prisma ORM 7: model a one-to-many relation, build user CRUD endpoints, and exclude sensitive fields from responses.

EducationMarch 31, 2023Updated July 8, 2026

Building a REST API with NestJS and Prisma: Authentication

Learn how to implement JWT authentication in a NestJS REST API with Prisma ORM 7 and Passport: login endpoint, JWT strategy, auth guards, Swagger integration and bcrypt password hashing.