feat: complete auth and submission's swagger docs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user