modarb-be / src /common /serializers /muscle.serialization.ts
moahmedwafy's picture
feat(swagger): serialization
da50ce9
raw
history blame contribute delete
439 Bytes
import { SwaggerResponseProperty } from "@lib/decorators/swagger-response-property.decorator";
import { Expose } from "class-transformer";
export class EquipmentSerialization {
@Expose({ name: "_id" })
@SwaggerResponseProperty({ type: "string" })
id: string;
@Expose()
@SwaggerResponseProperty({ type: "string" })
name: string;
@Expose()
@SwaggerResponseProperty({ type: "string" })
image: string;
}