Skip to content

Commit e909138

Browse files
authored
[Feat/OPS-388] 다건삭제 DELETE 본문 수정 (#122)
* refactor/OPS-388 : 다건삭제 DELETE 본문 수정 * refactor/OPS-388 : 다건삭제 DELETE 테스트 케이스 수정
1 parent 68576db commit e909138

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/org/tuna/zoopzoop/backend/domain/datasource/controller/DataSourceController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public ResponseEntity<RsData<Map<String, Integer>>> delete(
6666

6767
// ===== 다건 삭제 =====
6868
@Operation(summary = "자료 다건 삭제", description = "내 PersonalArchive 안에 자료를 다건 삭제합니다.")
69-
@PostMapping("/delete")
69+
@DeleteMapping("/delete")
7070
public ResponseEntity<RsData<Void>> deleteMany(
7171
@Valid @RequestBody reqBodyForDeleteMany rq,
7272
@AuthenticationPrincipal CustomUserDetails user

src/main/java/org/tuna/zoopzoop/backend/domain/space/archive/controller/SpaceArchiveDataSourceController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public ResponseEntity<RsData<Map<String, Integer>>> deleteOne(
4444
}
4545

4646
@Operation(summary = "공유 자료 다건 삭제")
47-
@PostMapping("/delete")
47+
@DeleteMapping("/delete")
4848
public ResponseEntity<RsData<Void>> deleteMany(
4949
@PathVariable String spaceId,
5050
@RequestBody @Valid reqBodyForDeleteMany rq,

src/test/java/org/tuna/zoopzoop/backend/domain/space/archive/controller/SpaceArchiveDataSourceControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void delete_many_ok() throws Exception {
190190
"dataSourceId", List.of(a.getId(), b.getId())
191191
));
192192

193-
mockMvc.perform(post("/api/v1/space/{spaceId}/archive/datasources/delete", spaceId)
193+
mockMvc.perform(delete("/api/v1/space/{spaceId}/archive/datasources/delete", spaceId)
194194
.contentType(MediaType.APPLICATION_JSON)
195195
.content(body))
196196
.andExpect(status().isOk())

0 commit comments

Comments
 (0)