Provides a base controller class for building RESTful APIs following the JSON:API specification within the NestJS framework. Current stable version is 1.0.0, released with a cadence of major versions matching NestJS updates. It requires @nestjs/common >=11.0.0 and std-json-api. The package is designed to be used with extension packages like nestjs-rest-mongodb for database integration. Key differentiators: adheres strictly to JSON:API spec, integrates seamlessly with NestJS decorators and providers, and supports dependency injection for configuration via JsonApiControllersOptions token.
npm install nestjs-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a basic JSON:API controller by extending JsonApiController and applying the @Controller decorator.
Ensure your environment meets the engine requirements.
Install an extension package alongside nestjs-rest.
Update @nestjs/common to at least version 11.
Use the provider pattern shown in the documentation.
Run npm install std-json-api
Use named import: import { JsonApiController } from 'nestjs-rest'Add a provider for JsonApiControllersOptions using a factory.