swager documentation

This commit is contained in:
vigdorov
2020-07-02 21:56:52 +03:00
parent 4d34b4a0bb
commit a65e3cd53c
4 changed files with 43 additions and 10 deletions

View File

@ -1,10 +1,27 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import {ApiProperty} from '@nestjs/swagger';
export class StoreParams {
export class StoreRequest {
@ApiProperty()
key: string;
@ApiProperty()
value: any;
}
export class StoreResponse {
@ApiProperty()
key: string;
@ApiProperty()
value: any;
@ApiProperty()
_id: string;
@ApiProperty()
__v: number;
}
@Schema()
export class Store extends Document {