swager documentation
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user