Versioning — Techniques · NestJS

Ship version 2 of the cats API without breaking version 1: URI versioning with a default for the controllers that existed before, a version 2 controller on the same path, a route shared by both versions, and a health check outside them.

What you will learn

Read the theory for Versioning

All Techniques lessons

All NestJS courses

loading types…

What you'll learn

  • Enable URI versioning and explain what defaultVersion does and does not do
  • Serve two versions of the same path from two controllers, and one route under several versions with an array
  • Keep a route outside versions with VERSION_NEUTRAL