Click in order · NestJS course · Module 11: Swagger and OpenAPI
Structure of a Documented DTO
Arrange the elements of a documented DTO field from decorator to type:
Items to click
- @ApiProperty({
- description: 'Name', example: 'Marcus'
- name: string;
- })
You can check the correct answer by solving this task in the CodeWorlds game.