From 94d3628c7c168513577326c504070c70188422a2 Mon Sep 17 00:00:00 2001 From: Pavlo Strunkin Date: Sat, 23 Oct 2021 16:45:29 +0300 Subject: [PATCH] TestRun. Get details endpoint added https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker/issues/291 --- src/test-runs/test-runs.controller.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test-runs/test-runs.controller.ts b/src/test-runs/test-runs.controller.ts index 84f8ac50..f9961cb3 100644 --- a/src/test-runs/test-runs.controller.ts +++ b/src/test-runs/test-runs.controller.ts @@ -55,6 +55,14 @@ export class TestRunsController { return this.testRunsService.findMany(buildId); } + @Get(':id') + @ApiOkResponse({ type: TestRunDto }) + @ApiBearerAuth() + @UseGuards(JwtAuthGuard) + getDetails(@Param('id', new ParseUUIDPipe()) id: string): Promise { + return this.testRunsService.findOne(id); + } + @Post('approve') @ApiQuery({ name: 'merge', required: false }) @ApiBearerAuth()