Closed gioliveirass closed 1 year ago
NestJS, Prisma, PostgresSQL, Insomnia, VSCODE, beekeeper Studio portable
URL: domain.api.com.br/meetings/:id Method: GET
@Get(':id')
@UseGuards(AuthGuard('jwt'))
async meetingById(@Param('id') id: string) {
const meetingFound = await this.meetingService.findById(id);
if (meetingFound === null) throw new NotFoundException('Reunião não encontrada.');
return this.meetingService.findById(id);
}
async findById(id: string) {
return this.prismaService.meeting.findUnique({
where: {
id
},
select: {
id: true,
title: true,
description: true,
meetingDateTime: true,
Partner: {
select: {
id: true,
name: true,
email: true,
phoneNumber: true,
status: true
}
},
meetingComments: true,
},
});
}
@drisabelles @GabrielCamargoL mto bom
Descrição da atividade
Criar rota para retornar informações de uma reuniões em específico.
Informações para execução da atividade
DoR
DoD