From 298fab0960fab47be8a2eeec06396cd5f5aedd37 Mon Sep 17 00:00:00 2001 From: 101 Date: Fri, 9 Feb 2024 22:35:53 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../daemawiki/domain/document/api/DocumentController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/example/daemawiki/domain/document/api/DocumentController.java b/src/main/java/com/example/daemawiki/domain/document/api/DocumentController.java index b046f690..41c81c0e 100644 --- a/src/main/java/com/example/daemawiki/domain/document/api/DocumentController.java +++ b/src/main/java/com/example/daemawiki/domain/document/api/DocumentController.java @@ -28,7 +28,7 @@ public DocumentController(CreateDocument createDocument, GetDocument getDocument @PostMapping @ResponseStatus(HttpStatus.CREATED) - public Mono createDocument(@Valid @RequestBody CreateDocumentRequest request) { + public Mono createDocument(@Valid @RequestBody SaveDocumentRequest request) { return createDocumentService.execute(request); } @@ -43,10 +43,10 @@ public Mono deleteDocument(@PathVariable String documentId) { return deleteDocumentService.execute(documentId); } - @PatchMapping + @PatchMapping("/{documentId}") @ResponseStatus(HttpStatus.NO_CONTENT) - public Mono updateDocument(@RequestBody SaveDocumentRequest request) { - return updateDocumentService.execute(request); + public Mono updateDocument(@PathVariable String documentId, @RequestBody SaveDocumentRequest request) { + return updateDocumentService.execute(request, documentId); } }