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 @@ -101,7 +101,7 @@ public ResponseEntity<Void> updateSpreadsheetConfig(
return ResponseEntity.noContent().build();
}

@PatchMapping("/{id}/name")
@PutMapping("/{id}/name")
@Operation(summary = "Rename a spreadsheet configuration",
description = "Updates the name of an existing spreadsheet configuration")
@ApiResponse(responseCode = "204", description = "Configuration renamed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ void testRenameSpreadsheetConfig() throws Exception {
UUID configUuid = saveAndReturnId(configToRename);

String newName = "RenamedConfig";
mockMvc.perform(patch(URI_SPREADSHEET_CONFIG_GET_PUT + configUuid + "/name")
mockMvc.perform(put(URI_SPREADSHEET_CONFIG_GET_PUT + configUuid + "/name")
.content(newName)
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isNoContent());
Expand All @@ -473,7 +473,7 @@ void testRenameSpreadsheetConfig() throws Exception {
@Test
void testRenameNonExistentSpreadsheetConfig() throws Exception {
UUID nonExistentUuid = UUID.randomUUID();
mockMvc.perform(patch(URI_SPREADSHEET_CONFIG_GET_PUT + nonExistentUuid + "/name")
mockMvc.perform(put(URI_SPREADSHEET_CONFIG_GET_PUT + nonExistentUuid + "/name")
.content("NewName")
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isNotFound());
Expand Down