Skip to content

Commit 7c8ea01

Browse files
committed
GET /reports/{report_id}
1 parent 3486241 commit 7c8ea01

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

backend/src/reports/reports.controller.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,27 @@ export class ReportsController {
4545
return this.reportsService.findLatest(queryDto);
4646
}
4747

48+
@ApiOperation({ summary: 'GET report' })
49+
@ApiResponse({
50+
status: 200,
51+
description: 'Report status updated successfully',
52+
type: Report,
53+
})
54+
@ApiResponse({
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+
4869
@ApiOperation({ summary: 'Update report status' })
4970
@ApiResponse({
5071
status: 200,

0 commit comments

Comments
 (0)