NestJS · Middle · Question 51 of 75
Which API versioning strategies does Nest support?
- 1Only URI
- ✓Correct answer: URI (
/v1/...), header, media type and custom - 3Versioning isn't supported
Explanation
Enable with app.enableVersioning({ type: VersioningType.URI }) and mark controllers or routes with @Version('2').