Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Feb 9, 2024
1 parent af408c0 commit 298fab0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public DocumentController(CreateDocument createDocument, GetDocument getDocument

@PostMapping
@ResponseStatus(HttpStatus.CREATED)
public Mono<Void> createDocument(@Valid @RequestBody CreateDocumentRequest request) {
public Mono<Void> createDocument(@Valid @RequestBody SaveDocumentRequest request) {
return createDocumentService.execute(request);
}

Expand All @@ -43,10 +43,10 @@ public Mono<Void> deleteDocument(@PathVariable String documentId) {
return deleteDocumentService.execute(documentId);
}

@PatchMapping
@PatchMapping("/{documentId}")
@ResponseStatus(HttpStatus.NO_CONTENT)
public Mono<Void> updateDocument(@RequestBody SaveDocumentRequest request) {
return updateDocumentService.execute(request);
public Mono<Void> updateDocument(@PathVariable String documentId, @RequestBody SaveDocumentRequest request) {
return updateDocumentService.execute(request, documentId);
}

}

0 comments on commit 298fab0

Please sign in to comment.