mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 05:09:26 +00:00
fix: add description to saveGrade 200 response
This commit is contained in:
@@ -187,6 +187,10 @@ export class DecksController {
|
|||||||
@ApiNotFoundResponse({ description: 'Card not found' })
|
@ApiNotFoundResponse({ description: 'Card not found' })
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
@ApiNoContentResponse({ description: 'Grade saved' })
|
@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')
|
@Post(':id/learn')
|
||||||
@ApiOperation({
|
@ApiOperation({
|
||||||
description: 'Save the grade of a card',
|
description: 'Save the grade of a card',
|
||||||
|
|||||||
Reference in New Issue
Block a user