Install @nestjs/swagger, configure Swagger UI at /api/docs with JWT bearer auth, and add ApiTags/ApiOperation/ApiResponse/ApiProperty decorators to all 8 controllers (50+ endpoints) and 31 DTOs across auth, listings, search, payments, subscriptions, admin, notifications, and analytics modules. Co-Authored-By: Paperclip <noreply@paperclip.ing>
10 lines
287 B
TypeScript
10 lines
287 B
TypeScript
import { IsString, MinLength } from 'class-validator';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class RefundPaymentDto {
|
|
@ApiProperty({ description: 'Reason for the refund', example: 'Customer requested cancellation' })
|
|
@IsString()
|
|
@MinLength(1)
|
|
reason!: string;
|
|
}
|