-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add question enhancement API swagger
Co-authored-by: shl0501 <[email protected]> Co-authored-by: 유영재 <[email protected]>
- Loading branch information
1 parent
af6e207
commit 9952d26
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { applyDecorators } from '@nestjs/common'; | ||
import { ApiOperation, ApiResponse } from '@nestjs/swagger'; | ||
|
||
export const ImproveQuestionSwagger = () => | ||
applyDecorators( | ||
ApiOperation({ summary: '질문 개선' }), | ||
ApiResponse({ | ||
status: 201, | ||
description: '질문 개선 성공', | ||
schema: { | ||
example: { | ||
result: { | ||
question: '리마큐(Remacu)란 무엇인가요?', | ||
}, | ||
}, | ||
}, | ||
}), | ||
); |