feat: complete auth and submission's swagger docs

This commit is contained in:
2026-09-02 16:37:47 +03:30
parent 8fced148b7
commit 0961b8f11d
22 changed files with 453 additions and 13 deletions
@@ -0,0 +1,35 @@
import { ApiProperty } from '@nestjs/swagger';
import { AccessType } from '../../enums/access-types.enum';
export class GetTestByIdDTO {
@ApiProperty({
type: 'number',
example: 1,
})
id!: number;
@ApiProperty({
type: 'string',
example: 'Test Title',
})
title!: string;
@ApiProperty({
type: 'string',
example: 'Test description',
})
description!: string;
@ApiProperty({
enum: AccessType,
enumName: 'accessType',
example: 'login',
})
accessType!: AccessType;
@ApiProperty({
type: 'string',
example: '1000000',
})
price!: string;
}