DEV Community

Discussion on: Adding live documentation to YOUR REST API with Swagger and Nest.js

Collapse
 
aralvesandrade profile image
Alexandre Andrade

import { ApiProperty } from "@nestjs/swagger";

export class Cat {
@ApiProperty()
id: number;

@ApiProperty()
name: string;
}