From e9e30fe435cc2509f1072c70f905fdcea5a67a43 Mon Sep 17 00:00:00 2001 From: andres Date: Sat, 20 Jan 2024 13:19:25 +0100 Subject: [PATCH] fix: add description to saveGrade 200 response --- src/modules/decks/decks.controller.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/decks/decks.controller.ts b/src/modules/decks/decks.controller.ts index 06f59b5..5e5030e 100644 --- a/src/modules/decks/decks.controller.ts +++ b/src/modules/decks/decks.controller.ts @@ -187,6 +187,10 @@ export class DecksController { @ApiNotFoundResponse({ description: 'Card not found' }) @HttpCode(HttpStatus.OK) @ApiNoContentResponse({ description: 'Grade saved' }) + @ApiOkResponse({ + description: 'A new random card in the deck. Will never return the same card that was sent', + type: Card, + }) @Post(':id/learn') @ApiOperation({ description: 'Save the grade of a card',