Skip to content

Commit 4c2aace

Browse files
authored
Dev > Main 브랜치 병합
스웨거 설정 수정 테스트 후에 Main 브랜치에 병합합니다.
2 parents cfba0ee + 8b2f279 commit 4c2aace

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/main/java/hs/kr/backend/devpals/domain/Inquiry/controller/InquiryController.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,24 @@ public ResponseEntity<ApiResponse<String>> createInquiry(
3737
}
3838

3939
@GetMapping("/{inquiryId}")
40-
@Operation(summary = "문의 조회", description = "특정 문의를 상세 조회합니다.")
40+
@Operation(summary = "문의 조회", description = "특정 문의를 상세 조회합니다.",
41+
responses = {
42+
@io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "200", description = "문의 조회 성공"),
43+
@io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "400", description = "잘못된 요청 - 유효하지 않은 파일 타입, 토큰 오류 등 발생")
44+
}
45+
)
4146
public ResponseEntity<ApiResponse<InquiryDto>> getInquiry(
4247
@PathVariable Long inquiryId) {
4348
return inquiryService.getInquiry(inquiryId);
4449
}
4550

4651
@DeleteMapping("/{inquiryId}")
47-
@Operation(summary = "문의 삭제", description = "특정 문의를 삭제합니다.")
52+
@Operation(summary = "문의 삭제", description = "특정 문의를 삭제합니다.",
53+
responses = {
54+
@io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "200", description = "문의 삭제 성공"),
55+
@io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "400", description = "잘못된 요청 - 토큰 오류 등 발생")
56+
}
57+
)
4858
public ResponseEntity<ApiResponse<String>> deleteInquiry(
4959
@RequestHeader("Authorization") String token,
5060
@PathVariable Long inquiryId) {

src/main/java/hs/kr/backend/devpals/domain/Inquiry/dto/InquiryDto.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ public class InquiryDto {
2828
@Schema(description = "문의 카테고리", example = "오류/버그 신고")
2929
private String category;
3030

31-
@Schema(description = "등록된 이미지 URL 목록", example = "[\"https://devpal.s3.ap-northeast-2.amazonaws.com/devpals_inquiry1-1-1.png\", \"https://...\"]")
31+
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
32+
@Schema(description = "등록된 이미지 URL 목록",
33+
example = "[\"https://devpal.s3.ap-northeast-2.amazonaws.com/devpals_inquiry1-1-1.png\", \"https://...\"]",
34+
accessMode = Schema.AccessMode.READ_ONLY
35+
)
3236
private List<String> imageUrls;
3337

3438
public static InquiryDto fromEntity(InquiryEntity inquiry) {

0 commit comments

Comments
 (0)