We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afd3006 + 6fc6b00 commit 93f6affCopy full SHA for 93f6aff
backend/src/iac/backend-stack.test.ts
backend/src/reports/reports.controller.ts
@@ -45,6 +45,25 @@ export class ReportsController {
45
return this.reportsService.findLatest(queryDto);
46
}
47
48
+ @ApiOperation({ summary: 'GET report' })
49
+ @ApiResponse({
50
+ status: 200,
51
+ description: 'Report status updated successfully',
52
+ type: Report,
53
+ })
54
55
+ status: 404,
56
+ description: 'Report not found',
57
58
+ @ApiParam({
59
+ name: 'id',
60
+ description: 'Report ID',
61
62
+ @Get(':id')
63
+ async getReport(@Param('id') id: string): Promise<Report> {
64
+ return this.reportsService.findOne(id);
65
+ }
66
+
67
@ApiOperation({ summary: 'Update report status' })
68
@ApiResponse({
69
status: 200,
0 commit comments