Skip to content

Commit

Permalink
FLASH-264 feat: api swagger 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoiWonYu committed Sep 13, 2024
1 parent 8d1e677 commit 504d3b1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ public ResponseEntity<MemberReportResponse> reportMember(
return ResponseEntity.ok(reportService.reportMember(reportedContentId, request));
}

@Operation(summary = "마케팅 수신 동의 여부 설정", description = "마케팅 수신 동의 여부 설정")
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "동의 여부 설정 완료",
content = @Content(mediaType = "application/json", schema = @Schema(implementation = ManageConsentResponse.class))),
@ApiResponse(responseCode = "400", description = "유효하지 않은 요청 형식",
content = @Content(mediaType = "application/json", examples = {
@ExampleObject(name = "요청값 누락", value = "{\"hasAgreedToMarketing\": \"동의 여부는 필수입니다.\"}"),
}))
})
@PostMapping("/marketing-consent")
public ResponseEntity<ManageConsentResponse> manageMarketingConsent(
@RequestBody @Valid final ManageConsentRequest request) {
Expand Down

0 comments on commit 504d3b1

Please sign in to comment.