Skip to content

Commit c473728

Browse files
authored
Merge pull request #40 from gdsc-ssu/feat/#36-swagger
[API] Swagger 내 Content-Type 표시 문제 해결
2 parents 858f504 + 32d58f4 commit c473728

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/weve/controller/GcsController.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import io.swagger.v3.oas.annotations.tags.Tag;
88
import lombok.RequiredArgsConstructor;
99
import lombok.extern.slf4j.Slf4j;
10+
import org.springframework.http.MediaType;
1011
import org.springframework.validation.annotation.Validated;
1112
import org.springframework.web.bind.annotation.PostMapping;
1213
import org.springframework.web.bind.annotation.RequestMapping;
@@ -26,7 +27,7 @@ public class GcsController {
2627

2728
private final GcsService gcsService;
2829

29-
@PostMapping("/upload")
30+
@PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
3031
@Operation(summary = "파일 업로드", description = "파일을 업로드하여 URL을 생성합니다.")
3132
public BasicResponse<UploadFileResponse> uploadFile(@RequestPart(value = "file") MultipartFile multipartFile) throws IOException {
3233

0 commit comments

Comments
 (0)