fix: add description to saveGrade 200 response

This commit is contained in:
2024-01-20 13:19:25 +01:00
parent 6b63fd498a
commit e9e30fe435

View File

@@ -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',