Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public ResponseEntity<RsData<Map<String, Integer>>> delete(

// ===== 다건 삭제 =====
@Operation(summary = "자료 다건 삭제", description = "내 PersonalArchive 안에 자료를 다건 삭제합니다.")
@PostMapping("/delete")
@DeleteMapping("/delete")
public ResponseEntity<RsData<Void>> deleteMany(
@Valid @RequestBody reqBodyForDeleteMany rq,
@AuthenticationPrincipal CustomUserDetails user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public ResponseEntity<RsData<Map<String, Integer>>> deleteOne(
}

@Operation(summary = "공유 자료 다건 삭제")
@PostMapping("/delete")
@DeleteMapping("/delete")
public ResponseEntity<RsData<Void>> deleteMany(
@PathVariable String spaceId,
@RequestBody @Valid reqBodyForDeleteMany rq,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void delete_many_ok() throws Exception {
"dataSourceId", List.of(a.getId(), b.getId())
));

mockMvc.perform(post("/api/v1/space/{spaceId}/archive/datasources/delete", spaceId)
mockMvc.perform(delete("/api/v1/space/{spaceId}/archive/datasources/delete", spaceId)
.contentType(MediaType.APPLICATION_JSON)
.content(body))
.andExpect(status().isOk())
Expand Down