import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'; import { TestService } from './test.service'; import { SwaggerBuscarFuncionario } from './test.swagger'; @Controller('test') export class TestController { constructor(private readonly testService: TestService) { } @Post() @SwaggerBuscarFuncionario() findOne(@Body() ususario: { Nombre: string, Apellidos: string, IdUnidadResponsable: number, nombreFlag: boolean }) { return this.testService.buscarFuncionario(ususario); } }