Skip to content

Commit 93f6aff

Browse files
Merge pull request #32 from ModusCreateOrg/ADE-146
[ADE-146] GET /reports/{report_id}
2 parents afd3006 + 6fc6b00 commit 93f6aff

File tree

2 files changed

+19
-246
lines changed

2 files changed

+19
-246
lines changed

Diff for: backend/src/iac/backend-stack.test.ts

-246
This file was deleted.

Diff for: backend/src/reports/reports.controller.ts

+19
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,25 @@ 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(@Param('id') id: string): Promise<Report> {
64+
return this.reportsService.findOne(id);
65+
}
66+
4867
@ApiOperation({ summary: 'Update report status' })
4968
@ApiResponse({
5069
status: 200,

0 commit comments

Comments
 (0)