We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3486241 commit 7c8ea01Copy full SHA for 7c8ea01
backend/src/reports/reports.controller.ts
@@ -45,6 +45,27 @@ 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(
64
+ @Param('id') id: string,
65
+ ): Promise<Report> {
66
+ return this.reportsService.findOne(id);
67
+ }
68
+
69
@ApiOperation({ summary: 'Update report status' })
70
@ApiResponse({
71
status: 200,
0 commit comments